re PR c++/25263 (ICE on invalid array bound: int x[1/0];)
authorRoger Sayle <roger@eyesopen.com>
Tue, 6 Dec 2005 14:00:09 +0000 (14:00 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Tue, 6 Dec 2005 14:00:09 +0000 (14:00 +0000)
commit9116d529f6d79990fc5b7315f9f905f9d2ec6fb7
tree0eb762891764cfb8cb423cefc2632ddc553ab720
parentc0328823536bcf18bcff02f3f6bf503da93a5dfb
re PR c++/25263 (ICE on invalid array bound: int x[1/0];)

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.

From-SVN: r108119
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/array2.C [new file with mode: 0644]