Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / g++.dg / template / inherit8.C
index a9b2bdb..3176dc0 100644 (file)
@@ -4,9 +4,9 @@ template <typename T>
 struct A
 {
   template <typename U>
-  struct B : public A <B<U> >
+  struct B : public A <B<U> >  // { dg-error "declaration" }
   {
-    struct C : public B<U>
+    struct C : public B<U>     // { dg-error "incomplete" }
     {
     };
   };