gautron@litp.ibp.fr (Philippe GAUTRON) (05/28/90)
Bug : initialization and asm statements Compiler: /* <<AT&T C++ Translator 2.00.02 08/25/89>> */ -- Consider: class X { public: void print(); }; f1(){ X *x = new X; asm (" nop"); } f2(){ X *x; x = new X; asm (" nop"); } -- C generation (pseudo-code): f1(){ struct X *__1x ; asm(" nop"); __1x = (((struct X *)__nw__FUi ( sizeof (struct X )) )); } f2(){ struct X *__1x ; __1x = (((struct X *)__nw__FUi ( sizeof (struct X )) )); asm(" nop"); } ----------------------- Philippe Gautron, UUCP: gautron@rxf.ibp.fr, Rank Xerox France / LITP Universite de Paris VI 4 place Jussieu, 75252 PARIS CEDEX 05 FRANCE