Re: [C PATCH] Fix initialization of flexible array members (PR c/56078)

2013-01-24 Thread Joseph S. Myers
On Thu, 24 Jan 2013, Jakub Jelinek wrote: > Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, > ok for trunk? The 20030305-1.c testcase is now rejected with hard > errors instead of resulting just in warnings and ignored initializers, > but I believe the error is right, initial

[C PATCH] Fix initialization of flexible array members (PR c/56078)

2013-01-24 Thread Jakub Jelinek
Hi! As discussed in the PR, while most of c-typeck.c handles constructor_max_index == NULL the same as when tree_int_cst_lt (constructor_max_index, some_index) returns false, i.e. some_index is within bounds, there is one spot that handles this incorrectly and one which doesn't consider NULL const