1 // PR c++/71604
2 // { dg-do compile { target c++11 } }
3 
foo()4 void foo ()
5 {
6   int a[2] = { 1, 2 };
7   for (struct S { S (int) {} } S : a) // { dg-error "types may not be defined" }
8     ;
9 }
10