]> granicus.if.org Git - clang/commit
Implement the restrictions in C++ [class.friend]p6, which disallow
authorDouglas Gregor <dgregor@apple.com>
Mon, 10 Oct 2011 01:11:59 +0000 (01:11 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 10 Oct 2011 01:11:59 +0000 (01:11 +0000)
commit883af83bd6f9b0b60b8c7a78b8682eb8ab40a4a8
tree82468c67dde5778d9320aa4a6a22178ce64bf03e
parentb5ae92f2f52df88ae14504d3a3f2bddb479829b6
Implement the restrictions in C++ [class.friend]p6, which disallow
defining a friend function with a qualified name or in a local
class. Fixes PR9853.

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