repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
crash3.C
blob
4a3d097d7868839fdc2d3b49e8224b019039f6de
1
// { dg-do assemble }
2
// Bug: g++ tries to generate initialization semantics for a Node from an int,
3
// and fails.
4
5
struct Node
6
{ // { dg-error "" }
7
Node* child[2];
8
};
9
10
void bug(int i)
11
{
12
Node* q = new Node(i); // { dg-error "" }
13
}