------- Comment #1 from zsojka at seznam dot cz 2010-09-09 19:35 ------- Created an attachment (id=21757) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21757&action=view) archive with reduced testcase
$ g++ -O2 -fipa-cp-clone -flto -nostdlib -r file1.cpp file2.cpp ----- file1.cpp ----- #include "header.h" void foo () { s.v1 (); s.m (); } --------------------- ----- file2.cpp ----- #include "header.h" void S::v1 () { v2 (); } void S::m () { v1 (); } --------------------- ----- header.h ----- struct S { void m (); virtual void v1 (); virtual void v2 (); }; extern S s; -------------------- I pressed "Commit" too early, so there is the rest: Tested revisions: r164077 - crash r164096 - crash r161659 - OK -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45621