aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/crash48.C
blob: 20882a80a5337041a23ad26adcc8915eead0ba39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Build don't link: 
// GROUPS passed old-abort
class internal {
	int field;
	int anotherfield;
}; // ERROR - candidates are

class bug {
	internal* numbers;
	bug(int size);
}; // ERROR - several errors

bug::bug(int size)
{ // ERROR - candidates
	numbers = new internal(size * size);// ERROR -  no match.*
}

main()
{
	bug test;// ERROR -  no match
}