re PR c++/36023 (ICE with cast to variable-sized object)
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 May 2008 19:56:03 +0000 (21:56 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 May 2008 19:56:03 +0000 (21:56 +0200)
commit23bee8f4f1c78abc6d2cfad600424d7b37f60557
treed2873c16dd8713c73413caf63949e0dc6fdadee8
parent6110c44a9732fde36136ca7404eebee9c072c85a
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: r135734
gcc/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/complit10.C [new file with mode: 0644]