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

14 lines
223 B
C

// Bug: g++ tries to generate initialization semantics for a Node from an int,
// and fails.
// Build don't link:
struct Node
{
Node* child[2];
}; // ERROR -
void bug(int i)
{
Node* q = new Node(i); // ERROR -
}