Re: gcc bug question regarding error recovery

2008-02-01 Thread Ian Lance Taylor
Pjotr Kourzanov <[EMAIL PROTECTED]> writes: > int main() { const int size=10; struct foo { > int array[size]; int* p; };// f = { .p=0 }; > struct foo f = { .p = 0 }; } With gcc mainline, compiled with checking, I get an ICE: /home/iant/foo1.c: In function

gcc bug question regarding error recovery

2008-02-01 Thread Pjotr Kourzanov
Dear gcc developers, While trying a code snippet structured as the following code suggests I've encountered a gcc error recovery bug. Namely, the gcc (versions 4.0-4.3, as well as 3.2) starts leaking memory (after reporting that a variable-sized object can not be initialized) and never exists.