summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2017-08-27 16:49:47 +0000
committerFaisal Vali <faisalv@yahoo.com>2017-08-27 16:49:47 +0000
commit5f5b29dd22bf13262bf2119743fc46bba00e4f53 (patch)
tree8203e5beed0873baa062fcee20743f14a779065d /clang/lib/CodeGen/CodeGenModule.cpp
parent17ee7c0977bce32341f32a177a911ba8740e4005 (diff)
downloadbcm5719-llvm-5f5b29dd22bf13262bf2119743fc46bba00e4f53.tar.gz
bcm5719-llvm-5f5b29dd22bf13262bf2119743fc46bba00e4f53.zip
Don't see through 'using member-declarations' when determining the relation of any potential implicit object expression to the parent class of the member function containing the function call.
Prior to this patch clang would not error here: template <class T> struct B; template <class T> struct A { void foo(); void foo2(); void test1() { B<T>::foo(); // OK, foo is declared in A<int> - matches type of 'this'. B<T>::foo2(); // This should be an error! // foo2 is found in B<int>, 'base unrelated' to 'this'. } }; template <class T> struct B : A<T> { using A<T>::foo2; }; llvm-svn: 311851
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud