diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-21 17:05:03 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-21 17:05:03 +0000 |
commit | 1e054213f8416a48866105216ad4a45f1e7c24de (patch) | |
tree | 0284b6ecd9991dd37eb14bdf49fe6baf0495c9b0 /lib/Parse/ParseTentative.cpp | |
parent | c19f959d7fa5303f2fff5fa7a4968361cb7ef068 (diff) |
Consider nested-names as part of the declarator when resolving an ambiguous statement.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76583 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseTentative.cpp')
-rw-r--r-- | lib/Parse/ParseTentative.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Parse/ParseTentative.cpp b/lib/Parse/ParseTentative.cpp index 97f6f526d4..8b0d400b5b 100644 --- a/lib/Parse/ParseTentative.cpp +++ b/lib/Parse/ParseTentative.cpp @@ -427,8 +427,12 @@ Parser::TPResult Parser::TryParseDeclarator(bool mayBeAbstract, // direct-declarator: // direct-abstract-declarator: - if (Tok.is(tok::identifier) && mayHaveIdentifier) { + if ((Tok.is(tok::identifier) || + (Tok.is(tok::annot_cxxscope) && NextToken().is(tok::identifier))) && + mayHaveIdentifier) { // declarator-id + if (Tok.is(tok::annot_cxxscope)) + ConsumeToken(); ConsumeToken(); } else if (Tok.is(tok::l_paren)) { ConsumeParen(); |