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