Skip to content

Commit bf7e78a

Browse files
revert tentatie parse before returning exprerror
1 parent ac23c88 commit bf7e78a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Parse/ParseReflect.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ ExprResult Parser::ParseCXXReflectExpression(SourceLocation DoubleCaretLoc) {
3939
// - nested-name-specifier identifier ::
4040
// - namespace-name ::
4141
// - nested-name-specifier template_opt simple-template-id
42+
TPA.Revert();
4243
Diag(OperandLoc, diag::err_cannot_reflect_operand);
4344
return ExprError();
4445
} else if (SS.isValid() &&

0 commit comments

Comments
 (0)