OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.brendan / crash29.C
1 // Build don't link: 
2 // GROUPS passed old-abort
3
4 union Value
5 {
6         Value(){}
7 };
8
9 struct GlobalAddress
10 {
11         GlobalAddress(Value *nvar){}// ERROR - .*
12 };// ERROR -  candidates .*
13
14 main()
15 {
16         new GlobalAddress(Value());             // internal error occured here// ERROR -  no matching function .*
17         //new GlobalAddress(new Value());       // This line is correct code
18 }