This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 May 2006 15:08:01 -0000
- Subject: [Bug c++/27384] [4.0/4.1/4.2 regression] ICE with invalid array size
- References: <bug-27384-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from reichelt at gcc dot gnu dot org 2006-05-11 15:08 -------
Subject: Bug 27384
Author: reichelt
Date: Thu May 11 15:07:45 2006
New Revision: 113701
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113701
Log:
PR middle-end/27384
* fold-const.c (size_binop): Move sanity check for arguments to
the beginning of the function.
* g++.dg/other/fold1.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/other/fold1.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27384