Compiling g++.dg/abi/local1-a.cc and g++.dg/abi/local1.C from the testsuite with -flto -g results in an ICE (the same ICE for both testcases):
$ gcc-4.5 -c -g -flto local1.C local1.C:22:1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:21168 -- Summary: Testcases local1-a.cc and local1.C cause ICE when compiled with -flto -g Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: baldrick at gcc dot gnu dot org GCC build triplet: x86_64-linux-gnu GCC host triplet: x86_64-linux-gnu GCC target triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42987