URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [typename11.C] - Rev 717
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/11987
template <int dim> struct X {
struct I { I(); };
};
template <int dim> struct Y : X<dim> {
typedef typename X<dim>::I I;
};
// note: I is nested type in X, not Y!
template <int dim>
Y<dim>::I::I () {} // { dg-error "dependent typedef" }
// { dg-error "no type|dependent type" "" { target *-*-* } 13 }
template struct Y<1>;
Go to most recent revision | Compare with Previous | Blame | View Log