OSDN Git Service

2010-01-26 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / parse / typename11.C
1 // PR c++/11987
2
3 template <int dim> struct X {
4   struct I { I(); };
5 };
6
7 template <int dim> struct Y : X<dim> {
8   typedef typename X<dim>::I I;
9 };
10
11 // note: I is nested type in X, not Y!
12 template <int dim>
13 Y<dim>::I::I () {}              // { dg-error "dependent typedef" }
14 // { dg-error "no type|dependent type" "" { target *-*-* } 13 }
15
16 template struct Y<1>;