From: John McCall Date: Thu, 26 Aug 2010 09:52:08 +0000 (+0000) Subject: Apparently gcc doesn't always get injected class names right. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d9496d2d22817aeb286dd7007923e14f10fa8a6;p=clang Apparently gcc doesn't always get injected class names right. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112178 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h index 79e4541c90..e5bdd9ee48 100644 --- a/include/clang/AST/DeclBase.h +++ b/include/clang/AST/DeclBase.h @@ -642,10 +642,13 @@ public: virtual void print(llvm::raw_ostream &OS) const; }; -class DeclContextLookupResult : public std::pair { +class DeclContextLookupResult + : public std::pair { public: - DeclContextLookupResult(NamedDecl **I, NamedDecl **E) : pair(I, E) {} - DeclContextLookupResult() : pair() {} + DeclContextLookupResult(NamedDecl **I, NamedDecl **E) + : std::pair(I, E) {} + DeclContextLookupResult() + : std::pair() {} using pair::operator=; }; @@ -654,10 +657,11 @@ class DeclContextLookupConstResult : public std::pair { public: DeclContextLookupConstResult(std::pair R) - : pair(R) {} + : std::pair(R) {} DeclContextLookupConstResult(NamedDecl * const *I, NamedDecl * const *E) - : pair(I, E) {} - DeclContextLookupConstResult() : pair() {} + : std::pair(I, E) {} + DeclContextLookupConstResult() + : std::pair() {} using pair::operator=; };