PR c++/65554
commitabab7c700188c03510cb9776b15007432816355b
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Apr 2015 13:08:05 +0000 (1 13:08 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Apr 2015 13:08:05 +0000 (1 13:08 +0000)
tree957638af48e07034a160a9355bff94fde6b7c11d
parent7fc3fdaf30015bfb654cd2933ae351e1b0553771
PR c++/65554
* class.c (finish_struct): Require that the second field of a
user-defined initializer_list be of size type.

* g++.dg/cpp0x/initlist93.C: New test.
* g++.dg/cpp0x/initlist94.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221808 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist93.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/initlist94.C [new file with mode: 0644]