gcc bug question regarding error recovery
\ Pjotr Kourzanov (1 Feb 2008)
. \ Ian Lance Taylor (1 Feb 2008)

1 msg[cygwin, gnat] error: 'system.ads' has restrict...
1 msg[cygwin] FAIL: gcc.dg/vect/pr31041.c: gcc.dg/ve...
2 msgInserting NOP instructions and branch delay slots
4 msgHow to get fndecl on C++ CALL_EXPR?
4 msgResults for 4.3.0 20080125 (experimental) (GCC)...
1 msgMake insn-recog.c use a byte-coded DFA
11 msg[m32c] type precedence rules and pointer signs
1 msggcc-4.2-20080130 is now available
9 msgProper way to make a one-off multi-file testcase?
9 msgContributing to cross-compiling
4 msgMIPS failure in gcc.c-torture/execute/20040709-...
1 msgConfirm Your E-mail Address
4 msgGIMPLE nodes to ASM by using builtins
4 msgBultins functions execl... for mingw
1 msg-Winvalid-pch semantics
1 msgBUG in libstdc++-v3/config/os/generic/error_con...
2 msgQuestion about Register Class Allocation
1 msgAnnounce: MPFR 2.3.1 is released
7 msg_Unwind_Resume on the stack
Subject:Re: gcc bug question regarding error recovery
Group:Gcc
From:Ian Lance Taylor
Date:1 Feb 2008


Pjotr Kourzanov <peter.kourzanov> 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


© 2004-2008 readlist.com