OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
gcc/cp/
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
crash3.C
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 // { dg-message "note" }
6
{
7
Node* child[2];
8
};
9
10
void bug(int i)
11
{
12
Node* q = new Node(i); // { dg-error "no matching" }
13
// { dg-message "candidate" "candidate note" { target *-*-* } 12 }
14
}