crash3.C   [plain text]


// Bug: g++ tries to generate initialization semantics for a Node from an int,
// and fails.
// Build don't link:

struct Node
{				// ERROR - 
  Node* child[2];
};

void bug(int i)
{
  Node* q = new Node(i);	// ERROR - 
}