Pass the InitializedEntity to Sema::CheckConstructorAccess and use it to report diffe...
commit2b83d227f3071159f3b64e84478336ab0ad5f6a9
authorAnders Carlsson <andersca@mac.com>
Wed, 21 Apr 2010 18:47:17 +0000 (21 18:47 +0000)
committerAnders Carlsson <andersca@mac.com>
Wed, 21 Apr 2010 18:47:17 +0000 (21 18:47 +0000)
tree1e7092526e04aaf5918bdf15e633110c25fa39d0
parent878b82dc869865aed9d8cdd91ad9be518c5fafbe
Pass the InitializedEntity to Sema::CheckConstructorAccess and use it to report different diagnostics depending on which entity is being initialized.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102010 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/Sema.h
lib/Sema/SemaAccess.cpp
lib/Sema/SemaInit.cpp
test/CXX/class.access/p4.cpp