The following valid code snippet triggers an ICE on trunk when compiled with "-flto -g":
======================================= inline int foo() { static union { int i; }; return i; } void bar() { foo(); } ======================================= bug.cc: In function 'foo()': bug.cc:5:1: internal compiler error: in gimple_decl_printable_name, at gimple.c:4610 Please submit a full bug report, [etc.] -- Summary: ICE with anonymous union and -flto Product: gcc Version: 4.5.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored, lto Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43080