https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119328
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2025-03-17
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, not a regression.
(gdb) up
#1 0x00000000007c9263 in tsubst_expr (t=<parm_decl 0x7fffe9bc3550 x>,
args=<tree_vec 0x7fffe9bb9a60>,
complain=0, in_decl=<tree 0x0>) at
/home/mpolacek/src/gcc/gcc/cp/pt.cc:21910
21910 gcc_assert (cp_unevaluated_operand);
(gdb) l
21905 RETURN (current_class_ptr);
21906
21907 /* This can happen for a parameter name used later in a
function
21908 declaration (such as in a late-specified return type).
Just
21909 make a dummy decl, since it's only used for its type.
*/
21910 gcc_assert (cp_unevaluated_operand);
21911 r = tsubst_decl (t, args, complain);
21912 /* Give it the template pattern as its context; its true
context
21913 hasn't been instantiated yet and this is good enough
for
21914 mangling. */
(gdb)