This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- Comment #15 from jsm28 at gcc dot gnu dot org  2007-09-26 12:32 -------
Subject: Bug 25309

Author: jsm28
Date: Wed Sep 26 12:32:27 2007
New Revision: 128811

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128811
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:
    trunk/gcc/testsuite/gcc.dg/large-size-array-4.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/large-size-array-2.c


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]