We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c4244 commit ec903ebCopy full SHA for ec903eb
clang/lib/Parse/Parser.cpp
@@ -2223,7 +2223,8 @@ bool Parser::TryAnnotateTypeOrScopeTokenAfterScopeSpec(
2223
}
2224
2225
if (SS.isEmpty()) {
2226
- if (getLangOpts().ObjC && Tok.is(tok::coloncolon)) {
+ if (getLangOpts().ObjC && !getLangOpts().CPlusPlus &&
2227
+ Tok.is(tok::coloncolon)) {
2228
// ObjectiveC does not allow :: as as a scope token.
2229
Diag(ConsumeToken(), diag::err_expected_type);
2230
return true;
0 commit comments