This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
other/4956: Strange error while trying to compile large defined 3d arrays
- From: jeff at jeff dot ath dot cx
- To: gcc-gnats at gcc dot gnu dot org
- Date: 27 Nov 2001 15:19:47 -0000
- Subject: other/4956: Strange error while trying to compile large defined 3d arrays
- Reply-to: jeff at jeff dot ath dot cx
[Get raw message]
>Number: 4956
>Category: other
>Synopsis: Strange error while trying to compile large defined 3d arrays
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Tue Nov 27 07:26:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Jeff Evans
>Release: 2.95.3
>Organization:
>Environment:
FreeBSD 4.3-Release
>Description:
When trying to compile a large 3d array, you get the error message:
array too large
But when you compile the code below, you get this error message:
[jeff@jeff:~] gcc -o t t.c
t.c: In function `main':
t.c:4: Internal compiler error in `assign_stack_temp_for_type', at function.c:940
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
int main(){
int blah[1000][1000][1000];
scanf("%d",blah);
return 0;
}
>How-To-Repeat:
I haven't tested it on any other architecture/OS, but you should be able to repeat it on FreeBSD 4.3-Release by attempting to compile code with the correct 3d array size.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: