other/4956: Strange error while trying to compile large defined 3d arrays

jeff@jeff.ath.cx jeff@jeff.ath.cx
Fri Nov 16 23:33:00 GMT 2001


>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:



More information about the Gcc-bugs mailing list