diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-07-12 18:54:40 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-07-12 18:54:40 +0000 |
commit | 1afa611e36e0ab23dd3cde4bbe5aa74ceb7d77c5 (patch) | |
tree | 1bb334f207ba8d2e92dc0910bd87a52c95ba3f85 /test/CXX/temp/temp.decls | |
parent | 78c2ec43284537f65bbd95b0628271a140ba0ec4 (diff) | |
download | clang-1afa611e36e0ab23dd3cde4bbe5aa74ceb7d77c5.tar.gz |
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
Diffstat (limited to 'test/CXX/temp/temp.decls')
-rw-r--r-- | test/CXX/temp/temp.decls/temp.friend/p4.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/CXX/temp/temp.decls/temp.friend/p4.cpp b/test/CXX/temp/temp.decls/temp.friend/p4.cpp index 8571a14120..e036cef32b 100644 --- a/test/CXX/temp/temp.decls/temp.friend/p4.cpp +++ b/test/CXX/temp/temp.decls/temp.friend/p4.cpp @@ -26,20 +26,3 @@ void g() { X2<float> xf; f(xf); } - -template<typename T> -struct X3 { - operator int(); - - friend void h(int x); -}; - -int array2[sizeof(X3<int>)]; -int array3[sizeof(X3<float>)]; - -void i() { - X3<int> xi; - h(xi); - X3<float> xf; - h(xf); -} |