https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124397
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
I think the problem is that in tsubst_lambda_expr we do:
/* [temp.deduct] A lambda-expression appearing in a function type or a
template parameter is not considered part of the immediate context for
the purposes of template argument deduction. */
complain = tf_warning_or_error;
but we shouldn't do that when dumping.