This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc bug question regarding error recovery
- From: Ian Lance Taylor <iant at google dot com>
- To: Pjotr Kourzanov <peter dot kourzanov at xs4all dot nl>
- Cc: gcc at gcc dot gnu dot org
- Date: 01 Feb 2008 07:37:03 -0800
- Subject: Re: gcc bug question regarding error recovery
- References: <47A30282.2070605@xs4all.nl>
Pjotr Kourzanov <peter.kourzanov@xs4all.nl> 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 ‘main’:
/home/iant/foo1.c:3: error: variable-sized object may not be initialized
/home/iant/foo1.c:3: internal compiler error: tree check: expected integer_cst, have mult_expr in tree_int_cst_lt, at tree.c:4919
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Thanks for the report.
Ian