[Bug c++/124603] ICE in retrieve_specialization, at cp/pt.cc:1285
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 22 18:24:43 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124603
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |10.4.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Alexey Saldyrkine from comment #0)
> ICE occurs when using gcc trunk.
> Works fine with gcc 15.
/* There should be as many levels of arguments as there are
levels of parameters. */
gcc_assert (TMPL_ARGS_DEPTH (args)
== (TREE_CODE (tmpl) == TEMPLATE_DECL
? TMPL_PARMS_DEPTH (DECL_TEMPLATE_PARMS (tmpl))
: template_class_depth (DECL_CONTEXT (tmpl))));
More information about the Gcc-bugs
mailing list