blob: 3bfd0cfc48137bdcf4d455f883b2a7dad97a947a [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed templates
template<class T>
class L {
public:
L();
T x[30];
int doit(int i) const;
};
#ifdef BUG
template<class T>
int
L<T>::doit(int i) const
{
return x[i].z;
}
#endif
class X {
public:
class Y {
public:
Y();
Y(int);
int z;
};
L<Y> ly;
};
#ifndef BUG
template<class T>
int
L<T>::doit(int i) const
{
return x[i].z;
}
#endif
static X x;