diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-16 00:47:45 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-04-16 00:47:45 +0000 |
commit | 56eca6c6aa7c6c1a48ef9abb3fd8d40650002cb7 (patch) | |
tree | e97c9cee3af3e95b49025ddaaec2f883e35b94f6 /lib/Parse/ParseDeclCXX.cpp | |
parent | 829f41a7fd7beb33eeb512111681b73d21011262 (diff) | |
download | clang-56eca6c6aa7c6c1a48ef9abb3fd8d40650002cb7.tar.gz |
PR41192: fix cases where "missing ';' after class" error would
incorrectly fire.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358467 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDeclCXX.cpp')
-rw-r--r-- | lib/Parse/ParseDeclCXX.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Parse/ParseDeclCXX.cpp b/lib/Parse/ParseDeclCXX.cpp index de481e8879..9159f4d682 100644 --- a/lib/Parse/ParseDeclCXX.cpp +++ b/lib/Parse/ParseDeclCXX.cpp @@ -1248,9 +1248,11 @@ bool Parser::isValidAfterTypeSpecifier(bool CouldBeBitfield) { case tok::ampamp: // struct foo {...} && R = ... case tok::identifier: // struct foo {...} V ; case tok::r_paren: //(struct foo {...} ) {4} + case tok::coloncolon: // struct foo {...} :: a::b; case tok::annot_cxxscope: // struct foo {...} a:: b; case tok::annot_typename: // struct foo {...} a ::b; case tok::annot_template_id: // struct foo {...} a<int> ::b; + case tok::kw_decltype: // struct foo {...} decltype (a)::b; case tok::l_paren: // struct foo {...} ( x); case tok::comma: // __builtin_offsetof(struct foo{...} , case tok::kw_operator: // struct foo operator ++() {...} |