public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/98742] [11 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in finish_omp_clauses, at cp/semantics.c:7435 since r11-6752-ga6d22fb21c6f1ad7
Date: Wed, 20 Jan 2021 07:38:55 +0000	[thread overview]
Message-ID: <bug-98742-4-ZqX5ovYoKj@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-98742-4@http.gcc.gnu.org/bugzilla/>

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

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

https://gcc.gnu.org/g:7ab1abf3b82a3bcfff9b7bc596166fef6a0d83ab

commit r11-6810-g7ab1abf3b82a3bcfff9b7bc596166fef6a0d83ab
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Jan 20 08:35:20 2021 +0100

    openmp: Don't ICE on detach clause with erroneous decl [PR98742]

    Similarly to how we handle erroneous operands to e.g. allocate clause,
    this change just removes those clauses instead of accessing
TYPE_MAIN_VARIANT
    of its type, which doesn't work on error_mark_node.  Also, just for good
    measure, bails out if TYPE_NAME is NULL.

    2021-01-20  Jakub Jelinek  <jakub@redhat.com>

            PR c++/98742
            * semantics.c (finish_omp_clauses) <case OMP_CLAUSE_DETACH>: If
            error_operand_p, remove clause without further checking.  Check
            for non-NULL TYPE_NAME.

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

  parent reply	other threads:[~2021-01-20  7:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-19  9:42 [Bug c++/98742] New: [11 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in finish_omp_clauses, at cp/semantics.c:7435 asolokha at gmx dot com
2021-01-19 10:01 ` [Bug c++/98742] [11 Regression] ICE: tree check: expected class 'type', have 'exceptional' (error_mark) in finish_omp_clauses, at cp/semantics.c:7435 since r11-6752-ga6d22fb21c6f1ad7 marxin at gcc dot gnu.org
2021-01-19 10:12 ` jakub at gcc dot gnu.org
2021-01-20  7:38 ` cvs-commit at gcc dot gnu.org [this message]
2021-01-20  8:54 ` jakub at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-98742-4-ZqX5ovYoKj@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).