diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:44:14 +0000 |
| commit | 2b6b257f4e5503a7a2675bdb8735693db769f75c (patch) | |
| tree | e85e046ae7003fe3bcc8b5454cd0fa3f7407b470 /test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp | |
| parent | b4348ed0b7e90c0831b925fbee00b5f179a99796 (diff) | |
Notes
Diffstat (limited to 'test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp')
| -rw-r--r-- | test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp b/test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp index d1562d4cd18b..f32b23976547 100644 --- a/test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp +++ b/test/CXX/basic/basic.lookup/basic.lookup.qual/class.qual/p2.cpp @@ -53,16 +53,17 @@ namespace InhCtor { int n = b.T(); // expected-error {{'T' is a protected member of 'InhCtor::A'}} // expected-note@-15 {{declared protected here}} + // FIXME: EDG and GCC reject this too, but it's not clear why it would be + // ill-formed. template<typename T> struct S : T { - struct U : S { + struct U : S { // expected-note 6{{candidate}} using S::S; }; using T::T; }; - - S<A>::U ua(0); - S<B>::U ub(0); + S<A>::U ua(0); // expected-error {{no match}} + S<B>::U ub(0); // expected-error {{no match}} template<typename T> struct X : T { |
