[Bug c++/42059] [4.4/4.5 Regression] [c++0x] ICE with initializer list for VLA
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 17 07:22:00 GMT 2009
------- Comment #3 from jakub at gcc dot gnu dot org 2009-11-17 07:22 -------
Subject: Bug 42059
Author: jakub
Date: Tue Nov 17 07:21:43 2009
New Revision: 154239
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=154239
Log:
PR c++/42059
* typeck.c (cp_build_modify_expr): For initializer list call
check_array_initializer to make sure lhs isn't a VLA.
* g++.dg/cpp0x/initlist26.C: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/cpp0x/initlist26.C
Modified:
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/typeck.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42059
More information about the Gcc-bugs
mailing list