http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54511
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-09-07 05:52:51 UTC --- I can confirm the problem for gcc 4.8.0 20120819 (experimental). I reduced the example to get rid of some "magic" values, which are not relevant to be present. One important requirement for reproducing the ICE is that A is a template. template <class> struct A { A() { union { int a; }; a = 0; } }; A<int> a; The error I'm getting compiled with -Wall -pedantic -std=c++11 is: "|In constructor 'A< <template-parameter-1-1> >::A() [with <template-parameter-1-1> = int]':| 10|internal compiler error: in make_decl_rtl, at varasm.c:1143|"