https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61913

--- Comment #14 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
The testcase still seems to work for me (with and without linker plugin).

Without linker plugin collect2 will not execute LTO unless it can resolve
symbols. You need to link with g++ (and have runtime or path) or use -r
-nostdlib. Otherwise it fails with:

/tmp/ccHKdyQQ.o:(.rodata._ZTI1A[_ZTI1A]+0x0): undefined reference to `vtable
for __cxxabiv1::__class_type_info'

and warnings are not output.

Reply via email to