]> granicus.if.org Git - clang/commit
Add a quick-and-dirty hack to give a better diagnostic for [class.protected]
authorJohn McCall <rjmccall@apple.com>
Fri, 3 Sep 2010 04:56:05 +0000 (04:56 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 3 Sep 2010 04:56:05 +0000 (04:56 +0000)
commitfe24e05a87e48fa3318b65d1a92c542107639fd9
tree5afaecfcdd231fc82120cf2ae7ec56ee8a5187d0
parentfae962200efef618d1c24c14b9c3fed25876f059
Add a quick-and-dirty hack to give a better diagnostic for [class.protected]
restrictions.  The note's not really on the right place given its wording,
but putting a second note on the call site (or muddying the wording) doesn't
appeal.

There are corner cases where this can be wrong, but I'm not concerned.

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