blob: ce9fb649d3a22d35ae6cc823ee3bc2a6f8643f0f [file] [log] [blame]
// PR c++/18429
int subtrees = 4;
template< class T >
struct Tree {
Tree* L[subtrees]; // { dg-error "" }
Tree* R[subtrees]; // { dg-error "" }
~Tree()
{
delete [] L[0];
delete [] R[0];
}
};
void f()
{
Tree<int> t;
}