public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/10089: ICE on initialization of variable-length array
@ 2003-03-15 2:36 mmabreu
0 siblings, 0 replies; only message in thread
From: mmabreu @ 2003-03-15 2:36 UTC (permalink / raw)
To: gcc-gnats
>Number: 10089
>Category: c
>Synopsis: ICE on initialization of variable-length array
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Sat Mar 15 02:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Marcelo Abreu
>Release: gcc version 3.2.2
>Organization:
>Environment:
Linux 2.4.19 i686
>Description:
ICE occurs when trying to initialize a certain multidimensional array. This array has the length of leftmost dimension not specified and the length of another dimension specified by a variable.
GCC 3.2.2 outputs the following:
bug.c: In function `main':
bug.c:3: Internal compiler error in size_binop, at fold-const.c:2016
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Try to compile the program below with: gcc bug.c -o bug
int main (int argc, char* argv[])
{
char values[][argc] = { "" };
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-03-15 2:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-15 2:36 c/10089: ICE on initialization of variable-length array mmabreu
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).