From: Jakub Jelinek Date: Wed, 21 May 2008 19:57:06 +0000 (+0200) Subject: re PR c++/36023 (ICE with cast to variable-sized object) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bac46fb6104d090640f64f79b59f13a3f9284fdd;p=gcc.git re PR c++/36023 (ICE with cast to variable-sized object) 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. From-SVN: r135735 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f87d30c73a2..b71520e4550 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,11 +1,3 @@ -2008-05-21 Jakub Jelinek - - 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. - 2008-05-21 Kai Tietz PR/36280 diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d6787157f0e..419445c99f2 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,11 @@ +2008-05-21 Jakub Jelinek + + 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. + 2008-05-21 Tom Tromey * mangle.c (save_partially_mangled_name): Remove.