[Bug middle-end/42320] link error with -flto (undefined reference to 'non-virtual thunk ...)
hubicka at ucw dot cz
gcc-bugzilla@gcc.gnu.org
Thu Dec 10 16:57:00 GMT 2009
------- Comment #4 from hubicka at ucw dot cz 2009-12-10 16:57 -------
Subject: Re: link error with -flto (undefined reference to 'non-virtual thunk
...)
> 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
I think it is bug doing so, we probably should fix this at C++ thunk
side. I am not expert here, but the old non-RTL path was actually going
through the C++ import/export code that we might want to do too.
Thanks for looking into this!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42320
More information about the Gcc-bugs
mailing list