https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114790
--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #9) > Created attachment 58003 [details] > t2.cc > > `gcc -Wfatal-errors -fvisibility=hidden -shared t1.cc t2.cc -o t.so -fPIC > -O2 -flto=1 -flto-partition=1to1 -w` Note this testcase also violates ODR due to APITracerContextImp/APITracerContext having different virtual functions.