https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91118
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:8d7c0bf876fa784101f9ad9e3bba82cc065357da commit r10-6315-g8d7c0bf876fa784101f9ad9e3bba82cc065357da Author: Jakub Jelinek <[email protected]> Date: Wed Jan 29 09:41:42 2020 +0100 openmp: c++: Consider typeinfo decls to be predetermined shared [PR91118] If the typeinfo decls appear in OpenMP default(none) regions, as we no longer predetermine const with no mutable members, they are diagnosed as errors, but it isn't something the users can actually provide explicit sharing for in the clauses. 2020-01-29 Jakub Jelinek <[email protected]> PR c++/91118 * cp-gimplify.c (cxx_omp_predetermined_sharing): Return OMP_CLAUSE_DEFAULT_SHARED for typeinfo decls. * g++.dg/gomp/pr91118-1.C: New test. * g++.dg/gomp/pr91118-2.C: New test.
