================
@@ -1383,6 +1383,9 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
     addStaticToLambdaDeclSpecifier(*this, StaticLoc, DS);
     addConstexprToLambdaDeclSpecifier(*this, ConstexprLoc, DS);
     addConstevalToLambdaDeclSpecifier(*this, ConstevalLoc, DS);
+    if (clang::sema::LambdaScopeInfo *LSI = Actions.getCurLambda()) {
+      LSI->Mutable = MutableLoc.isValid();
+    }
----------------
cor3ntin wrote:

This is not quite correct. My guess is that we should call 
`ActOnLambdaClosureQualifiers` (that call is currently on line 1451) before 
calling `ParseTrailingReturnType` (instead of after) (starting on line 1425)

@zyn0217  

https://github.com/llvm/llvm-project/pull/180690
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to