Index: clang/lib/Parse/ParseTentative.cpp =================================================================== --- clang/lib/Parse/ParseTentative.cpp +++ clang/lib/Parse/ParseTentative.cpp @@ -62,6 +62,7 @@ case tok::kw_static_assert: case tok::kw__Static_assert: return true; + case tok::coloncolon: case tok::identifier: { if (DisambiguatingWithExpression) { RevertingTentativeParsingAction TPA(*this); Index: clang/test/Interpreter/global-namespace-disambiguate.cpp =================================================================== --- /dev/null +++ clang/test/Interpreter/global-namespace-disambiguate.cpp @@ -0,0 +1,8 @@ +// UNSUPPORTED: system-aix + +// RUN: cat %s | clang-repl 2>&1 | FileCheck %s + +struct A { ~A(); }; +::A::~A() {} + +// CHECK-NOT: error