PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / tc1 / dr108.C
blob036543964479ca59507239f5ccd2ff72ab91fca9
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" "name" }
11             // { dg-message "note" "note" { target *-*-* } .-1 }
12   };