This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c/598: Declaring an array of too long size causes problem.
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c/598: Declaring an array of too long size causes problem.
- From: lml at sasi dot com
- Date: 4 Oct 2000 07:16:30 -0000
- Reply-To: lml at sasi dot com
- Resent-Cc: gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, lml@sasi.com
>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=