1// PR c++/44045 2// { dg-do compile { target c++11 } } 3 4struct base 5{ 6 virtual ~base() { } 7}; 8 9int main() 10{ 11 base ptr_array[1]; 12 ptr_array = { base() }; // { dg-error "assign" } 13} 14