[Bug c++/119806] OpenACC, OpenMP 'target' offloading vs. C++ 'typeinfo' parts

2025-04-29 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119806

--- Comment #2 from Thomas Schwinge  ---
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

[Bug c++/119806] OpenACC, OpenMP 'target' offloading vs. C++ 'typeinfo' parts

2025-04-29 Thread tschwinge at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119806

Thomas Schwinge  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=119692
   Last reconfirmed||2025-04-29
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #1 from Thomas Schwinge  ---
I suspect this may get addressed via  "C++
'typeinfo', 'vtable' vs. OpenACC, OpenMP 'target' offloading".