summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/crash3.C
blob: c3709c555360662d2014f3a47456e005b8d29bf7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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 - 
}