r183787 - Add a testcase for PR7434, which is a bug we no longer appear to have.
Richard Smith
richard-llvm at metafoo.co.uk
Tue Jun 11 13:38:45 PDT 2013
Author: rsmith
Date: Tue Jun 11 15:38:45 2013
New Revision: 183787
URL: http://llvm.org/viewvc/llvm-project?rev=183787&view=rev
Log:
Add a testcase for PR7434, which is a bug we no longer appear to have.
Modified:
cfe/trunk/test/SemaCXX/access.cpp
Modified: cfe/trunk/test/SemaCXX/access.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/access.cpp?rev=183787&r1=183786&r2=183787&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/access.cpp (original)
+++ cfe/trunk/test/SemaCXX/access.cpp Tue Jun 11 15:38:45 2013
@@ -108,3 +108,31 @@ namespace PR15209 {
}
}
}
+
+namespace PR7434 {
+ namespace comment0 {
+ template <typename T> struct X;
+ namespace N {
+ class Y {
+ template<typename T> friend struct X;
+ int t; // expected-note {{here}}
+ };
+ }
+ template<typename T> struct X {
+ X() { (void)N::Y().t; } // expected-error {{private}}
+ };
+ X<char> x;
+ }
+ namespace comment2 {
+ struct X;
+ namespace N {
+ class Y {
+ friend struct X;
+ int t; // expected-note {{here}}
+ };
+ }
+ struct X {
+ X() { (void)N::Y().t; } // expected-error {{private}}
+ };
+ }
+}
More information about the cfe-commits
mailing list