This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
middle-end/9936: gcc 3.2, local function and variable-length 2d array
- From: douze at enseeiht dot fr
- To: gcc-gnats at gcc dot gnu dot org
- Date: 4 Mar 2003 11:47:20 -0000
- Subject: middle-end/9936: gcc 3.2, local function and variable-length 2d array
- Reply-to: douze at enseeiht dot fr
>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: