public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] cp: Fix error-recovery ICE
@ 2022-07-12 10:37 Alex Coplan
0 siblings, 0 replies; only message in thread
From: Alex Coplan @ 2022-07-12 10:37 UTC (permalink / raw)
To: gcc-cvs
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-12 10:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 10:37 [gcc(refs/vendors/ARM/heads/morello)] cp: Fix error-recovery ICE Alex Coplan
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).