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++/25263] [4.2 regression] ICE on invalid array bound: int x[1/0];



------- Comment #2 from sayle at gcc dot gnu dot org  2005-12-06 14:00 -------
Subject: Bug 25263

Author: sayle
Date: Tue Dec  6 14:00:09 2005
New Revision: 108119

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=108119
Log:

        PR c++/25263
        * decl.c (compute_array_index_type): Check that itype is an
        INTEGER_CST node before testing/clearing TREE_OVERFLOW.

        * g++.dg/other/array2.C: New test case.


Added:
    trunk/gcc/testsuite/g++.dg/other/array2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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