kipp@warp.wpd.sgi.com (Kipp Hickman) (06/24/89)
I ran into this one recently...is this fixed in 2.0? #include <stdio.h> class Base { long l; public: Base(); }; class D1 : public Base { public: D1(); }; class D2 : public Base { public: D2(); }; main(int, char** argv) { int i = atoi(argv[1]); // This line doesn't work Base* b = (i & 1) ? new D1() : new D2(); // this does work: Base *bb; if (i & 1) bb = new D1; else bb = new D2; } By the way, if some kind sole has this fixed in 1.2.1 and wants to send me the diff's that would be quite swell :-) kipp hickman silicon graphics inc.