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:#️⃣:add_specializations): Use
	STRIP_TEMPLATE.
This commit is contained in:
Jason Merrill 2022-02-10 14:59:49 -05:00
parent b25a7c05f1
commit db84f382ae

View File

@ -12976,7 +12976,7 @@ depset::hash::add_specializations (bool decl_p)
/* Implicit instantiations only walked if we reach them. */ /* Implicit instantiations only walked if we reach them. */
needs_reaching = true; needs_reaching = true;
else if (!DECL_LANG_SPECIFIC (spec) else if (!DECL_LANG_SPECIFIC (spec)
|| !DECL_MODULE_PURVIEW_P (spec)) || !DECL_MODULE_PURVIEW_P (STRIP_TEMPLATE (spec)))
/* Likewise, GMF explicit or partial specializations. */ /* Likewise, GMF explicit or partial specializations. */
needs_reaching = true; needs_reaching = true;