> cat main.cc struct Foo { static void f(); }; int main() { Foo::f(); }
> cat Foo.cc #include <string> #include <map> struct Foo { static void f(); }; void Foo::f() { typedef std::map<int, std::string> Map; static Map m; Map::const_iterator it = m.find(0); if (it != m.end()) { std::string s = it->second; } } > g++ -flto -O0 -c Foo.cc > g++ -flto -O0 -c main.cc > g++ -flto -O3 main.o Foo.o ... lto1: internal compiler error: in propagate, at ipa-reference.c:1244 ... (This is the same test case as in bug 42401). I'm using SVN revision tr...@155309 on linux x86_64. -- Summary: ICE in propagate, at ipa-reference.c:1244 Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: wouter dot vermaelen at scarlet dot be http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42402