decltype expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151515
91177308-0d34-0410-b5e6-
96231b3b80d8
0, /*IsDecltype=*/true);
Result = ParseExpression();
if (Result.isInvalid()) {
- SkipUntil(tok::r_paren, true, true);
+ SkipUntil(tok::r_paren);
DS.SetTypeSpecError();
- return Tok.is(tok::eof) ? Tok.getLocation() : ConsumeParen();
+ return StartLoc;
}
// Match the ')'
-// RUN: not %clang_cc1 -fsyntax-only %s
+// RUN: not %clang_cc1 -fsyntax-only -std=c++11 %s
// PR7481
+decltype(;
struct{
a
}
-