[Bug c/25309] [4.1/4.2 Regression] ICE on initialization of a huge array

2007-10-10 Thread jsm28 at gcc dot gnu dot org


--- Comment #17 from jsm28 at gcc dot gnu dot org  2007-10-10 20:46 ---
Subject: Bug 25309

Author: jsm28
Date: Wed Oct 10 20:46:11 2007
New Revision: 129216

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129216
Log:
PR c/25309
* c-common.c (complete_array_type): Diagnose too-large arrays and
set type to error_mark_node.

testsuite:
* gcc.dg/large-size-array-2.c: Expect diagnostic for too-large
array.
* gcc.dg/large-size-array-4.c: New.  Copy of large-size-array-2.c
without -O2.

Added:
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/large-size-array-4.c
Modified:
branches/gcc-4_2-branch/gcc/ChangeLog
branches/gcc-4_2-branch/gcc/c-common.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/gcc/testsuite/gcc.dg/large-size-array-2.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25309



[Bug c/25309] [4.1/4.2 Regression] ICE on initialization of a huge array

2007-09-27 Thread jsm28 at gcc dot gnu dot org


--- Comment #16 from jsm28 at gcc dot gnu dot org  2007-09-27 12:19 ---
Fixed for 4.3.0.


-- 

jsm28 at gcc dot gnu dot org changed:

   What|Removed |Added

Summary|[4.0/4.1/4.2/4.3 Regression]|[4.1/4.2 Regression] ICE on
   |ICE on initialization of a  |initialization of a huge
   |huge array  |array


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25309