Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!oliveb!ames!sgi!kipp@warp.wpd.sgi.com From: kipp@warp.wpd.sgi.com (Kipp Hickman) Newsgroups: comp.lang.c++ Subject: BUG in cfront 1.2.1 - is this fixed in 2.0? Keywords: bug Message-ID: <36554@sgi.SGI.COM> Date: 23 Jun 89 23:14:19 GMT Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 34 I ran into this one recently...is this fixed in 2.0? #include 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.