https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89884
Bug ID: 89884 Summary: g++.dg/lto/pr89335 FAILs Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: hubicka at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- Target: *-*-solaris2.* The new g++.dg/lto/pr89335 test FAILs on Solaris with the vendor ld, both 32 and 64-bit sparc and x86: +FAIL: g++.dg/lto/pr89335 cp_lto_pr89335_0.o assemble, -O2 -flto -Wsuggest-final-methods /vol/gcc/src/hg/trunk/local/gcc/testsuite/g++.dg/lto/pr89335_0.C:9:7: warning: Declaring virtual destructor of 'struct List' final would enable devirtualization of 1 call [-Wsuggest-final-methods] The failure can also be reproduced on Linux/x86_64 with -fno-use-linker-plugin.