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)
commitbac46fb6104d090640f64f79b59f13a3f9284fdd
treea5bef394ade99396e3930f80815b57c210be2311
parent23bee8f4f1c78abc6d2cfad600424d7b37f60557
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
gcc/ChangeLog
gcc/cp/ChangeLog