]> granicus.if.org Git - clang/commit
When performing the lookup in the current scope for a member access to
authorDouglas Gregor <dgregor@apple.com>
Wed, 10 Aug 2011 21:59:45 +0000 (21:59 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 10 Aug 2011 21:59:45 +0000 (21:59 +0000)
commita6d1e7623a9b7bd60779275c42827951a892993b
tree53a250dc70692b920821adba031551215744b0fa
parent94a9016a6b92cfebdb0b7d4dcad930248f1f301a
When performing the lookup in the current scope for a member access to
a member template, e.g.,

  x.f<int>

if we have found a template in the type of x, but the lookup in the
current scope is ambiguous, just ignore the lookup in the current
scope.  Fixes <rdar://problem/9915664>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137255 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplate.cpp
test/CXX/basic/basic.lookup/basic.lookup.classref/p1.cpp