]> granicus.if.org Git - clang/commit
When creating an implicit member expression through a qualified-id, check that the...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 14 Apr 2011 00:46:47 +0000 (00:46 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 14 Apr 2011 00:46:47 +0000 (00:46 +0000)
commit0d8dc460ae02e29d0b2abb4d6d093736e2f920ea
tree436c2fb3d20a8c7129be1c2bacd588d287dd71ff
parentfb67ccd9da412d652d62e2ac9675b0f1b14fdc73
When creating an implicit member expression through a qualified-id, check that the class
named by the nested-name-specifier is same or base of the class in which the member expression appears.

It seems we also had an ill-formed test case, mon dieu! Fixes rdar://8576107.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129493 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaExpr.cpp
test/CXX/class/class.mfct/class.mfct.non-static/p3.cpp