]> granicus.if.org Git - clang/commit
If we friend a declaration twice, that should not make it visible to name
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 10 Jul 2013 22:04:13 +0000 (22:04 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 10 Jul 2013 22:04:13 +0000 (22:04 +0000)
commit433a13d0cdb1c48b828fe5bfb6a835c58e1e758b
tree391e5d3a5da684f96b03f3f1238447d16e78a1a2
parent07b1bbe648a21b8cdbc073fb6a409422c49921bb
If we friend a declaration twice, that should not make it visible to name
lookup in the surrounding context. Slightly rework how we handle friend
declarations to inherit the visibility of the prior declaration, rather
than setting a friend declaration to be visible whenever there was a prior
declaration.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186040 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclBase.h
lib/Sema/SemaDecl.cpp
lib/Sema/SemaLookup.cpp
lib/Sema/SemaTemplate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/CXX/temp/temp.decls/temp.friend/p4.cpp
test/SemaCXX/friend.cpp