921e5a0eb4
From-SVN: r14840
14 lines
223 B
C
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 -
|
|
}
|