]> granicus.if.org Git - clang/commit
Revert r186040 to fix PR16597 while Richard investigates what the best
authorChandler Carruth <chandlerc@gmail.com>
Fri, 12 Jul 2013 18:54:40 +0000 (18:54 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 12 Jul 2013 18:54:40 +0000 (18:54 +0000)
commit1afa611e36e0ab23dd3cde4bbe5aa74ceb7d77c5
tree1bb334f207ba8d2e92dc0910bd87a52c95ba3f85
parent78c2ec43284537f65bbd95b0628271a140ba0ec4
Revert r186040 to fix PR16597 while Richard investigates what the best
fix is.

Original commit log:
  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@186185 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