We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4726dc commit c653318Copy full SHA for c653318
1 file changed
clang/lib/Parse/ParseExprCXX.cpp
@@ -1490,7 +1490,7 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
1490
if (Tok.is(tok::fatarrow)) {
1491
SourceLocation ReturnLoc(ConsumeToken());
1492
1493
- ExprResult Expr(ParseExpression());
+ ExprResult Expr(ParseAssignmentExpression());
1494
if (Expr.isInvalid()) {
1495
Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope());
1496
return ExprError();
0 commit comments