c/598: Declaring an array of too long size causes problem.

lml@sasi.com lml@sasi.com
Wed Oct 4 00:26:00 GMT 2000


>Number:         598
>Category:       c
>Synopsis:       Declaring an array of too long size causes problem.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 04 00:26:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Mahendra Ladhe
>Release:        unknown-1.0
>Organization:
>Environment:
SunOS sund6 5.7 Generic_106541-10 sun4u sparc SUNW,Ultra-250
>Description:
I wrote a small program named "a.c" as follows.
main()
{
  int a[540000000];  
}

If I compile it using gcc, I get following message.

a.c: In function `main':
a.c:4: Internal compiler error in `assign_stack_temp_for_type', at 
function.c:937
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for 
instructions.
>How-To-Repeat:
Just compile the attached file using gcc(version 2.95.2)
on a SunOS machine.
>Fix:
Compiler should check array size.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/x-unknown-content-type-cfile; name="a.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="a.c"

bWFpbigpCnsKICAgaW50IGFbNTQwMDAwMDAwXTsKfQo=


More information about the Gcc-bugs mailing list