re PR c++/36023 (ICE with cast to variable-sized object)
authorJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 May 2008 19:57:06 +0000 (21:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 May 2008 19:57:06 +0000 (21:57 +0200)
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

gcc/ChangeLog
gcc/cp/ChangeLog

index f87d30c73a21bc4d72ab751f5770593dc41e8f74..b71520e4550420d6259af1594727f5e5015cdc19 100644 (file)
@@ -1,11 +1,3 @@
-2008-05-21  Jakub Jelinek  <jakub@redhat.com>
-
-       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  <kai.tietz@onevision.com>
 
        PR/36280
index d6787157f0e84b1cdb31ee4f7103b9454a1925aa..419445c99f2a65baebfa8a6c012305c2b8e4377a 100644 (file)
@@ -1,3 +1,11 @@
+2008-05-21  Jakub Jelinek  <jakub@redhat.com>
+
+       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  <tromey@redhat.com>
 
        * mangle.c (save_partially_mangled_name): Remove.