1 // PR c++/42059
2 // { dg-do compile { target c++11 } }
3 // { dg-options "" }
4 
5 void
foo(int i)6 foo (int i)
7 {
8   int a[i];
9   a = { }; // { dg-error "5:assigning to an array from an initializer list" }
10 }
11