aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash29.C
blob: 855dd990be190f39a68942bc2cb0623f34b8a149 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Build don't link: 
// GROUPS passed old-abort

union Value
{
	Value(){}
};

struct GlobalAddress
{
	GlobalAddress(Value *nvar){}// ERROR - .*
};// ERROR -  candidates .*

main()
{
	new GlobalAddress(Value());		// internal error occured here// ERROR -  no matching function .*
	//new GlobalAddress(new Value());	// This line is correct code
}