http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60766
Mikael Pettersson <mikpelinux at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mikpelinux at gmail dot com --- Comment #4 from Mikael Pettersson <mikpelinux at gmail dot com> --- Created attachment 32552 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32552&action=edit self-contained test case, compilable as C and C++ The wrong-code reproduces for me with gcc 4.7 and 4.8 on x86_64-linux. For trunk it was fixed by r204515, which doesn't appear to be a wrong-code fix. Backporting r204515 to 4.8 fixes the wrong-code there too, but I haven't tested it beyond this test case.