]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/class.c
re PR c++/60848 (Crash while experimenting with c++-0x initializer lists)
authorJason Merrill <jason@redhat.com>
Tue, 15 Jul 2014 19:16:29 +0000 (15:16 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 15 Jul 2014 19:16:29 +0000 (15:16 -0400)
commit0090cacae6e9f0d3649dff9e428ea92a10d69cfa
tree4d907344ad2b91570c02586a01550c3cf0448eb6
parente27989c4f4ff56ea84f94135cfc8f574d66459bb
re PR c++/60848 (Crash while experimenting with c++-0x initializer lists)

PR c++/60848
PR c++/61723
* call.c (is_std_init_list): Don't check CLASSTYPE_TEMPLATE_INFO.
* class.c (finish_struct): Reject invalid definition of
std::initializer_list.

From-SVN: r212574
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/testsuite/g++.dg/cpp0x/initlist85.C
gcc/testsuite/g++.dg/cpp0x/initlist87.C [new file with mode: 0644]