https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91118

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:4b124e3c9c35121969cc23d0aea4bcb2c406fd21

commit r9-8216-g4b124e3c9c35121969cc23d0aea4bcb2c406fd21
Author: Jakub Jelinek <ja...@redhat.com>
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  <ja...@redhat.com>

        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.

Reply via email to