http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52400
Bug #: 52400 Summary: lto1: ICE with extern on static linkage Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassig...@gcc.gnu.org ReportedBy: ch...@gcc.gnu.org Compiling the attached file g++ -O0 -flto foo.cc lto1: internal compiler error: in lto_record_renamed_decl, at lto-section-in.c:330 removing the external declaration for f4() makes the test pass.