http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51325
Bug #: 51325 Summary: [4.7 Regression] ICE with -flto and union in template Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: reich...@gcc.gnu.org The following valid code snippet triggers an ICE on trunk when compiled with "-flto -g": ============================ template<int> void foo() { union { int i; }; i = 0; } void bar() { foo<0>(); } ============================ bug.cc: In function 'foo<0>()void': bug.cc:5:1: internal compiler error: Segmentation fault Please submit a full bug report, [etc.]