Path: utzoo!attcan!uunet!mcsun!inria!litp!gautron From: gautron@litp.ibp.fr (Philippe GAUTRON) Newsgroups: comp.lang.c++ Subject: Bug initialization and asm statements Message-ID: <2996@litp.ibp.fr> Date: 28 May 90 16:05:03 GMT Reply-To: gautron@litp.ibp.fr.UUCP (Philippe GAUTRON) Organization: Institut Blaise Pascal, Paris, France Lines: 48 Bug : initialization and asm statements Compiler: /* <> */ -- 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