public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/8462: ice in illegal array initializer
@ 2002-11-05 4:36 ehrhardt
0 siblings, 0 replies; only message in thread
From: ehrhardt @ 2002-11-05 4:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 8462
>Category: c
>Synopsis: ice in illegal array initializer
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Tue Nov 05 04:36:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Christian Ehrhardt
>Release: gcc-3.3
>Organization:
>Environment:
Reading specs from gcc-install/bin/../lib/gcc-lib/sparc-sun-solaris2.9/3.3/specs
Configured with: /home/thales/ehrhardt/gcc-cvs/gcc/configure --prefix=/home/thales/ehrhardt/gcc-install --with-gnu-ld --with-ld=/usr/local/bin/ld --with-gnu-as --with-as=/usr/local/bin/as : (reconfigured) /home/thales/ehrhardt/gcc-cvs/gcc/configure --prefix=/home/thales/ehrhardt/gcc-install --with-gnu-ld --with-ld=/usr/local/bin/ld --with-gnu-as --with-as=/usr/local/bin/as --enable-language=c,c++
Thread model: posix
gcc version 3.3 20021101 (experimental)
SunOS thales 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-2
>Description:
Compiling this
int a[10] = { [1.2.3] = 1 };
gives an ICE (segmentation fault).
--- c-typeck.c.orig Tue Nov 5 13:25:19 2002
+++ c-typeck.c Tue Nov 5 13:25:47 2002
@@ -5698,6 +5698,12 @@
designator_errorneous = 1;
+ /* Error while parsing the range start expression. */
+ if (!first) {
+ error_init ("missing or invalid range start in [] designator");
+ return;
+ }
+
while ((TREE_CODE (first) == NOP_EXPR
|| TREE_CODE (first) == CONVERT_EXPR
|| TREE_CODE (first) == NON_LVALUE_EXPR)
>How-To-Repeat:
See description
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-05 12:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-05 4:36 c/8462: ice in illegal array initializer ehrhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).