> > > > typeinfo seems to be a weak object symbol > > which is known to be broken with lto, so > > this may be related to: > > > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69271
This PR is about quite speicfic use of weak symbols, the way weaks are used in C++ (to unify multiple defintions) should work w/o problems. > > > > Is it a workaround to not compile the referencing cpp and the referred > cpp without lto, yet compile all the rest and link with lto? > Otherwise, I'll turn off LTO until that bug is resolved. It would be good to have a testcase.... Honza > > Thanks