* [pushed] c++: ICE on xtreme-header_a.H
@ 2022-02-10 20:32 Jason Merrill
0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2022-02-10 20:32 UTC (permalink / raw)
To: gcc-patches
This test regressed after my PR103752 patch with -march=cascadelake. I
don't understand why that flag makes a difference, but this patch is correct
in any case.
Tested x86_64-pc-linux-gnu, applying to trunk.
gcc/cp/ChangeLog:
* module.cc (depset::hash::add_specializations): Use
STRIP_TEMPLATE.
---
gcc/cp/module.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/cp/module.cc b/gcc/cp/module.cc
index 3cf0af10bc0..6e6b008b3a5 100644
--- a/gcc/cp/module.cc
+++ b/gcc/cp/module.cc
@@ -12976,7 +12976,7 @@ depset::hash::add_specializations (bool decl_p)
/* Implicit instantiations only walked if we reach them. */
needs_reaching = true;
else if (!DECL_LANG_SPECIFIC (spec)
- || !DECL_MODULE_PURVIEW_P (spec))
+ || !DECL_MODULE_PURVIEW_P (STRIP_TEMPLATE (spec)))
/* Likewise, GMF explicit or partial specializations. */
needs_reaching = true;
base-commit: 4a8083285c3edf50088a095870b217ab0881dff0
--
2.27.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-10 20:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-10 20:32 [pushed] c++: ICE on xtreme-header_a.H Jason Merrill
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).