Nathan Sidwell wrote:
cp/
PR c++/14179
* decl.c (reshape_init): Extract array handling into...
(reshape_init_array): New function. Use integers instead of
trees for indices. Handle out-of-range designated
initializers.
this one is ok, thanks!
Mark, Gaby, is this patch OK for 3.4 and 3.3?
http://gcc.gnu.org/ml/gcc-patches/2004-09/msg01852.html
It is actually pretty straightforward, it just changes a loop using INTEGER_CST
into HOST_WIDE_INTEGER. The diff is a bit harder to read because I extracted
the code into a new function. Also, the additional check about out-of-range
designated initializer is unnecessary and can be removed if you want.