[Bug c++/36023] [4.1/4.3/4.4 regression] ICE with cast to variable-sized object
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed May 21 19:57:00 GMT 2008
------- Comment #1 from jakub at gcc dot gnu dot org 2008-05-21 19:56 -------
Subject: Bug 36023
Author: jakub
Date: Wed May 21 19:56:03 2008
New Revision: 135734
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135734
Log:
PR c++/36023
* cp-tree.h (check_array_initializer): New prototype.
* decl.c (check_array_initializer): New function.
(check_initializer): Call it.
* semantics.c (finish_compound_literal): Call it for ARRAY_TYPEs.
* g++.dg/ext/complit10.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ext/complit10.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/decl.c
trunk/gcc/cp/semantics.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36023
More information about the Gcc-bugs
mailing list