[clang] [Clang][Parser] Have the depth of the abbreviated generic lambdas inside a requires clause differ from the surrounding generic lambda (PR #80656)
Younan Zhang via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 11 07:41:36 PST 2024
================
@@ -1385,6 +1385,11 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
Diag(RAngleLoc,
diag::err_lambda_template_parameter_list_empty);
} else {
+ // We increase the template depth before recursing into a requires-clause.
+ // The abbreviated generic lambdas thereof could have different template
+ // depths, avoiding substituting into wrong template parameters during the
----------------
zyn0217 wrote:
Done.
https://github.com/llvm/llvm-project/pull/80656
More information about the cfe-commits
mailing list