Index: lib/Sema/SemaDecl.cpp =================================================================== --- lib/Sema/SemaDecl.cpp +++ lib/Sema/SemaDecl.cpp @@ -5235,7 +5235,7 @@ DeclarationName Name, SourceLocation Loc, bool IsTemplateId) { DeclContext *Cur = CurContext; - while (Cur->isTransparentContext() || isa(Cur)) + while (isa(Cur) || isa(Cur)) Cur = Cur->getParent(); // If the user provided a superfluous scope specifier that refers back to the