]> granicus.if.org Git - clang/commit
Support friend function declarations in local classes correctly.
authorJohn McCall <rjmccall@apple.com>
Wed, 13 Oct 2010 05:45:15 +0000 (05:45 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 13 Oct 2010 05:45:15 +0000 (05:45 +0000)
commit29ae6e5fb001deddd831e66faf143ecd9e50f67c
treeeef97e606a9b4f6326e5797691f196409321564c
parent3bd5b6c3c2ad1d5a6f88cf21f627e8d4f03c4df4
Support friend function declarations in local classes correctly.
Fixes a crash and diagnoses the error condition of an unqualified
friend which doesn't resolve to something.  I'm still not certain how
this is useful.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116393 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
test/CXX/class.access/class.friend/p11.cpp [new file with mode: 0644]