http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54518
Bug #: 54518 Summary: A problem using -O2 with g++4.5.0 and g++4.6.0 (see titi.cc) Classification: Unclassified Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: thierry.visonn...@cea.fr Created attachment 28147 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28147 titi.cc A problem using -O2 with g++4.5.0 and g++4.6.0 Using -O2 option with g++4.5.0 and g++4.6.0, the attached file titi.cc is crashing. It seems that the correct behavior is to obtain the following output : titi : I= Please find "test.list" attached that summarizes our tests, and also the assembly code obtained with g++4.5.0 -O2 and g++4.6.0 -O2 : - titi.g++440-O2.s - titi.g++450-O2.s < movsbl 1(%rsp),%edi > xorl %edi, %edi Thanks, Best regards