This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR c/25875: ICE on invalid compound initializer
On 21 Apr, Joseph S. Myers wrote:
> On Fri, 21 Apr 2006, Volker Reichelt wrote:
>
>> The segfault happens in digest_init in c-typeck.c, because the
>> parameter init is the null-pointer. There are some sanity-checks
>> at the beginning of digest_init, but none for init being 0.
>> The patch below fixes the problem by also checking for this condition.
>>
>> Bootstrapped and regtested on x86_64-unknown-linux-gnu.
>> Ok for mainline?
>
> OK.
I forgot to mention that the bug is a 4.1/4.2 regression.
Ok for the 4.1 branch, too?
Regards,
Volker