http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53701
--- Comment #4 from Mikael Pettersson <mikpe at it dot uu.se> 2012-06-17 14:34:44 UTC --- This was fixed for gcc-4.7.0 by r177658: http://gcc.gnu.org/ml/gcc-cvs/2011-08/msg00672.html http://gcc.gnu.org/ml/gcc-patches/2011-08/msg00353.html The patch applies cleanly to 4.6.3 and cures the ICE on this test case. I haven't tested the backport beyond that. For 4.6.3 you can also avoid the ICE by reducing the optimization level to -O2.