OpenMP/C++: Permit mapping classes with virtual members [PR102204]
authorTobias Burnus <tobias@codesourcery.com>
Thu, 10 Feb 2022 17:57:37 +0000 (18:57 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 10 Feb 2022 18:03:42 +0000 (19:03 +0100)
commitc22f3fb780775b91548e32937a3ce1095a7c72a3
tree35d9aa0240500ef3e7509ce482f793e7fbd17788
parent2ac7b19f1e9219f46ccf55f25d8acb3e02e9a2d4
OpenMP/C++: Permit mapping classes with virtual members [PR102204]

PR c++/102204
gcc/cp/ChangeLog:

* decl2.cc (cp_omp_mappable_type_1): Remove check for virtual
members as those are permitted since OpenMP 5.0.

libgomp/ChangeLog:

* testsuite/libgomp.c++/target-virtual-1.C: New test.

gcc/testsuite/ChangeLog:

* g++.dg/gomp/unmappable-1.C: Remove previously expected dg-message.
gcc/cp/decl2.cc
gcc/testsuite/g++.dg/gomp/unmappable-1.C
libgomp/testsuite/libgomp.c++/target-virtual-1.C [new file with mode: 0644]