Created attachment 28147 [details] 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
Created attachment 28148 [details] test.list
Created attachment 28149 [details] titi.g++440-O2.s
Created attachment 28150 [details] titi.g++450-O2.s
works fine with 4.6.2 and later, so the problem seems to be fixed in all current releases
Fixed.