OSDN Git Service

PR c++/53816
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / access11.C
index 38bd515..73e2caa 100644 (file)
@@ -17,8 +17,8 @@ template <> struct X::Y<int> {
   A::X x;                      // { dg-error "this context" }
 };
 
-template <typename T> struct X::Y { // { dg-error "this context" }
+template <typename T> struct X::Y {
   typename T::X x;             // { dg-error "this context" }
 };
 
-template struct X::Y<A>;       // { dg-message "instantiated from here" }
+template struct X::Y<A>;       // { dg-message "required from here" }