1 // PR c++/44045
2 // { dg-do compile { target c++11 } }
3 
4 struct base
5 {
~basebase6    virtual ~base() { }
7 };
8 
main()9 int main()
10 {
11  base ptr_array[1];
12  ptr_array = { base() };	// { dg-error "12:assigning to an array from an initializer list" }
13 }
14