aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-26 09:52:08 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-26 09:52:08 +0000
commit6d9496d2d22817aeb286dd7007923e14f10fa8a6 (patch)
tree6f8d2f160aec366c63430269eef2c3cef5f8b2fd
parentea318642072d3d94b5c3cff0fa6f4b33d2db0768 (diff)
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
-rw-r--r--include/clang/AST/DeclBase.h16
1 files changed, 10 insertions, 6 deletions
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<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=;
};