From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32522 invoked by alias); 8 Dec 2005 12:57:52 -0000 Received: (qmail 32513 invoked by uid 48); 8 Dec 2005 12:57:50 -0000 Date: Thu, 08 Dec 2005 12:57:00 -0000 Subject: [Bug c/25309] New: ICE on initialization of a huge array X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jens dot teubner at in dot tum dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2005-12/txt/msg00818.txt.bz2 List-Id: GCC throws an internal compiler error when compiling the following C99 code (gcc -std=c99 -c): static char * name[] = { [0x80000000] = "bar" }; (GCC reports `internal compiler error: in tree_low_cst, at tree.c:3318'.) I realize that the above code is quite stupid, as I request the compiler to create an array of huge size. However, I think GCC should not throw an internal compiler error. For smaller values of the array index, GCC correctly reports `error: size of variable 'name' is too large'. I have reproduced the problem with GCC 3.4.4 (Gentoo Linux) and GCC 3.3.5 (SuSE 9.3), both on Intel Pentium M. -- Summary: ICE on initialization of a huge array Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jens dot teubner at in dot tum dot de GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25309