diff options
author | Jason Merrill <jason@redhat.com> | 2022-02-10 14:59:49 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-02-10 15:32:19 -0500 |
commit | db84f382ae3dc238b1c3e3a18b786bca5bd38a14 (patch) | |
tree | bf5f576ee12a25e31af2da21377f5fa9e9548dde | |
parent | b25a7c05f120e46a60430dcefe529c72303b7022 (diff) | |
download | gcc-db84f382ae3dc238b1c3e3a18b786bca5bd38a14.tar.gz |
c++: ICE on xtreme-header_a.H
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.
gcc/cp/ChangeLog:
* module.cc (depset::hash::add_specializations): Use
STRIP_TEMPLATE.
-rw-r--r-- | gcc/cp/module.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; |