blob: 80ef5c38e1fc3d4448a39180c66c78dc53650aac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* PR28266 This used to ICE in gimple_add_tmp_var */
/* { dg-do "compile" } */
struct A
{
int i;
A(int = X); /* { dg-error "was not declared in this scope" }*/
};
void foo()
{
A().i; /* { dg-error "default argument" } */
}
|