public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Alex Coplan <acoplan@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/vendors/ARM/heads/morello)] cp: Fix error-recovery ICE
Date: Tue, 12 Jul 2022 10:37:14 +0000 (GMT)	[thread overview]
Message-ID: <20220712103714.8BE5C3857BA7@sourceware.org> (raw)

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

commit 4d0c01ef97e117ff0b283ba3b6336e286ec89330
Author: Alex Coplan <alex.coplan@arm.com>
Date:   Thu Jul 7 12:33:27 2022 +0100

    cp: Fix error-recovery ICE
    
    Handle INTCAP_TYPEs in pt.c:convert_nontype_argument.
    
    This fixes an ICE seen with gcc/testsuite/g++.dg/template/pr79650.C at
    -std=c++20 compiled for pure-capability Morello.

Diff:
---
 gcc/cp/pt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 4a60964eba2..3b1d4816659 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -7286,6 +7286,7 @@ convert_nontype_argument (tree type, tree expr, tsubst_flags_t complain)
      integral promotions (_conv.prom_) and integral conversions
      (_conv.integral_) are applied.  */
   if (INTEGRAL_OR_ENUMERATION_TYPE_P (type)
+      || INTCAP_TYPE_P (type)
       || TREE_CODE (type) == REAL_TYPE)
     {
       if (cxx_dialect < cxx11)


                 reply	other threads:[~2022-07-12 10:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20220712103714.8BE5C3857BA7@sourceware.org \
    --to=acoplan@gcc.gnu.org \
    --cc=gcc-cvs@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).