https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119806
--- Comment #2 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- Similarly (I suppose, but have not checked the details), OpenMP_VV 'tests/5.0/application_kernels/declare_target_base_and_derived_class.cpp': GCN: ld: error: undefined symbol: vtable for S1 >>> referenced by /tmp/ccWZSCBY.o:(.data.rel.ro.local+0x0) >>> the vtable symbol may be undefined because the class is missing its key function (see https://lld.llvm.org/missingkeyfunction) collect2: error: ld returned 1 exit status gcn mkoffload: fatal error: $T/install/bin/x86_64-pc-linux-gnu-accel-amdgcn-amdhsa-gcc returned 1 exit status nvptx: ptxas /tmp/cci1PjSv.o, line 397; error : Unknown symbol '_ZTV2S1' ptxas fatal : Ptx assembly aborted due to errors nvptx-as: ptxas returned 255 exit status nvptx mkoffload: fatal error: x86_64-pc-linux-gnu-accel-nvptx-none-gcc returned 1 exit status $ c++filt _ZTV2S1 vtable for S1