aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/Lookup.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-04-12 20:54:26 +0000
committerDouglas Gregor <dgregor@apple.com>2010-04-12 20:54:26 +0000
commit01e56aecb77a96dcd93fa0e901b919f2e441981d (patch)
tree988b720e51cb2656c616b4e4b74a89fda3963a5c /lib/Sema/Lookup.h
parentec55c941f2846db48bce4ed6dd2ce339e1a48962 (diff)
Implement C++ [temp.local]p4, which specifies how we eliminate
name-lookup ambiguities when there are multiple base classes that are all specializations of the same class template. This is part of a general cleanup for ambiguities in template-name lookup. Fixes PR6717. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/Lookup.h')
-rw-r--r--lib/Sema/Lookup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Sema/Lookup.h b/lib/Sema/Lookup.h
index 73559a246d..97bc4f25a5 100644
--- a/lib/Sema/Lookup.h
+++ b/lib/Sema/Lookup.h
@@ -343,6 +343,11 @@ public:
} else {
ResultKind = Found;
resolveKind();
+
+ if (Paths && (ResultKind != Ambiguous)) {
+ deletePaths(Paths);
+ Paths = 0;
+ }
}
}