]> granicus.if.org Git - clang/commitdiff
Apparently gcc doesn't always get injected class names right.
authorJohn McCall <rjmccall@apple.com>
Thu, 26 Aug 2010 09:52:08 +0000 (09:52 +0000)
committerJohn McCall <rjmccall@apple.com>
Thu, 26 Aug 2010 09:52:08 +0000 (09:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112178 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclBase.h

index 79e4541c90a87fc5325db4136e6527a60e9f77a7..e5bdd9ee489eb140ff290fbf2efd061f4d2c25d7 100644 (file)
@@ -642,10 +642,13 @@ public:
   virtual void print(llvm::raw_ostream &OS) const;
 };
 
-class DeclContextLookupResult : public std::pair<NamedDecl**,NamedDecl**> {
+class DeclContextLookupResult
+  : public std::pair<NamedDecl**,NamedDecl**> {
 public:
-  DeclContextLookupResult(NamedDecl **I, NamedDecl **E) : pair(I, E) {}
-  DeclContextLookupResult() : pair() {}
+  DeclContextLookupResult(NamedDecl **I, NamedDecl **E)
+    : std::pair<NamedDecl**,NamedDecl**>(I, E) {}
+  DeclContextLookupResult()
+    : std::pair<NamedDecl**,NamedDecl**>() {}
 
   using pair::operator=;
 };
@@ -654,10 +657,11 @@ class DeclContextLookupConstResult
   : public std::pair<NamedDecl*const*, NamedDecl*const*> {
 public:
   DeclContextLookupConstResult(std::pair<NamedDecl**,NamedDecl**> R)
-    : pair(R) {}
+    : std::pair<NamedDecl*const*, NamedDecl*const*>(R) {}
   DeclContextLookupConstResult(NamedDecl * const *I, NamedDecl * const *E)
-    : pair(I, E) {}
-  DeclContextLookupConstResult() : pair() {}
+    : std::pair<NamedDecl*const*, NamedDecl*const*>(I, E) {}
+  DeclContextLookupConstResult()
+    : std::pair<NamedDecl*const*, NamedDecl*const*>() {}
 
   using pair::operator=;
 };