8sa1-gcc/gcc/testsuite/g++.old-deja/g++.brendan/scope3.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

26 lines
377 B
C

// Build don't link:
// GROUPS passed scoping
// This is fixed when NEW_CLASS_SCOPING is on.
template<class T>
class ArrayG {
public:
ArrayG();
protected:
const unsigned INITIAL;
T* array;
};
template<class T>
ArrayG<T>::ArrayG():
array(new T[INITIAL])
{ }
struct X {
struct Correspondence {
int i;
};
void fill(ArrayG<Correspondence>& a);
};