public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25309]  New: ICE on initialization of a huge array
@ 2005-12-08 12:57 jens dot teubner at in dot tum dot de
  2005-12-08 15:54 ` [Bug c/25309] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: jens dot teubner at in dot tum dot de @ 2005-12-08 12:57 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2008-07-04 15:12 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-08 12:57 [Bug c/25309] New: ICE on initialization of a huge array jens dot teubner at in dot tum dot de
2005-12-08 15:54 ` [Bug c/25309] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-12-08 16:55 ` rguenth at gcc dot gnu dot org
2005-12-08 18:17 ` [Bug c/25309] [3.4/4.0/4.1/4.2 " pinskia at gcc dot gnu dot org
2005-12-12  2:50 ` pinskia at gcc dot gnu dot org
2005-12-12  2:55 ` pinskia at gcc dot gnu dot org
2005-12-19 19:16 ` mmitchel at gcc dot gnu dot org
2006-02-24  0:28 ` mmitchel at gcc dot gnu dot org
2006-04-28 20:00 ` [Bug c/25309] [4.0/4.1/4.2 " sayle at gcc dot gnu dot org
2006-05-02 17:15 ` sayle at gcc dot gnu dot org
2006-05-03 18:50 ` sayle at gcc dot gnu dot org
2006-05-04  0:14 ` roger at eyesopen dot com
2007-03-18 15:43 ` hp at gcc dot gnu dot org
2007-03-18 17:38 ` [Bug c/25309] [4.0/4.1/4.2/4.3 " pinskia at gcc dot gnu dot org
2007-03-18 23:04 ` hp at gcc dot gnu dot org
2007-05-21  1:57 ` pinskia at gcc dot gnu dot org
2007-09-26  0:22 ` jsm28 at gcc dot gnu dot org
2007-09-26 12:33 ` jsm28 at gcc dot gnu dot org
2007-09-27 12:20 ` [Bug c/25309] [4.1/4.2 " jsm28 at gcc dot gnu dot org
2007-10-10 20:46 ` jsm28 at gcc dot gnu dot org
2007-10-10 21:19 ` [Bug c/25309] [4.1 " jsm28 at gcc dot gnu dot org
2008-07-04 15:12 ` jsm28 at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).