------- Comment #8 from alexey at feldgendler dot ru 2010-09-02 11:40 ------- Attached assembler files generated for 1.cpp and 2.cpp, as well as the assembler file generated by the LTO pass. As can be seen from the latter, _Z6callmev is referenced but not defined.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45496