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
Showing
Please
register
or
sign in
to comment