[Bug c++/91118] ubsan does not work with openmp default (none) directive

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 13 22:32:00 GMT 2020


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
<jakub@gcc.gnu.org>:

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

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


More information about the Gcc-bugs mailing list