middle-end/9936: gcc 3.2, local function and variable-length 2d array
douze@enseeiht.fr
douze@enseeiht.fr
Tue Mar 4 11:56:00 GMT 2003
>Number: 9936
>Category: middle-end
>Synopsis: gcc 3.2, local function and variable-length 2d array
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 04 11:56:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: gcc
>Release: version 3.2.1, 3.2.2
>Organization:
>Environment:
Linux 2.4.18, Mac OS X 10.2.4
>Description:
/* not preprocessed */
int foo() {
int yd;
float in[1][yd];
static void bar() {
printf("%p\n",in[0]);
}
}
>How-To-Repeat:
gcc -c test0.c
test0.c: In function `bar':
test0.c:7: Internal compiler error in expand_expr, at expr.c:6454
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>Fix:
Write ansi compliant code....
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list