[Bug middle-end/42320] link error with -flto (undefined reference to 'non-virtual thunk ...)

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Dec 10 16:39:00 GMT 2009



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-12-10 16:39 -------
The C++ FE marks the virtual function as TREE_PUBLIC but neither sets
TREE_STATIC nor DECL_EXTERNAL.  Thus probably lto_symtab_resolve_can_prevail_p
should reject DECL_EXTERNAL symbols, not !TREE_STATIC symbols.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42320



More information about the Gcc-bugs mailing list