From 01e56aecb77a96dcd93fa0e901b919f2e441981d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 12 Apr 2010 20:54:26 +0000 Subject: 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 --- lib/Sema/Lookup.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Sema/Lookup.h') 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; + } } } -- cgit v1.2.3-18-g5258