https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118672
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This has a dup, maybe more.
We're in tsubst_lambda_expr with complain=0 but we call start_lambda_function
-> start_preparsed_function -> push_template_decl with
warning (OPT_Wtemplates, "template %qD declared", decl);
where we crash. We can't call warning there, but push_template_decl doesn't
know it.