Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.dg / tc1 / dr108.C
blob6b567a9fad551cb55a245c726559b52ba3f1c29a
1 // { dg-do compile }
2 // Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3 // DR108: Are classes nested in templates dependent?
5 template <class T> struct S {
6   struct I1 {
7     typedef int X;
8   };
9   struct I2 : public I1 {
10     X x;    // { dg-error "does not name a type" }
11   };
14 // Additional notes on the same line are allowed
15 // { dg-error "" "additional" { target *-*-* } 10 }