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

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

https://gcc.gnu.org/g:91ddf867a57b028ab322b737ea8355d5a472cd44

commit r11-5623-g91ddf867a57b028ab322b737ea8355d5a472cd44
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Tue Dec 1 21:41:44 2020 +0100

    openmp: Avoid ICE on depend clause on depobj OpenMP construct [PR98072]

    Since r11-5430 we ICE on the following testcase.  When parsing the depobj
    directive we don't really use cp_parser_omp_all_clauses routine which ATM
    disables generation of location wrappers and the newly added assertion
    that there are no location wrappers thus triggers.

    Fixed by adding the location wrappers suppression sentinel.

    Longer term, we should handle location wrappers inside of OpenMP clauses.

    2020-12-01  Jakub Jelinek  <ja...@redhat.com>

            PR c++/98072
            * parser.c (cp_parser_omp_depobj): Suppress location wrappers when
            parsing depend clause.

            * c-c++-common/gomp/depobj-2.c: New test.

Reply via email to