Otherwise we assert due to uncorrected delayed typos.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233980
91177308-0d34-0410-b5e6-
96231b3b80d8
{
ParseScopeFlags FilterScope(this, getCurScope()->getFlags() |
Scope::SEHFilterScope);
- FilterExpr = ParseExpression();
+ FilterExpr = Actions.CorrectDelayedTyposInExpr(ParseExpression());
}
if (getLangOpts().Borland) {
}();
}
}
+
+void test_typo_in_except() {
+ __try {
+ } __except(undeclared_identifier) { // expected-error {{use of undeclared identifier 'undeclared_identifier'}} expected-error {{expected expression}}
+ }
+}