diff options
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 { |
