This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/17512] New: ICE in regex.c
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Sep 2004 03:17:46 -0000
- Subject: [Bug tree-optimization/17512] New: ICE in regex.c
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compile the following with ./cc1 -O2
char
foo (const char *p)
{
const char *q = p;
return ((p != 0) == (q == p));
}
I get
kazu.c: In function 'foo':
kazu.c:3: internal compiler error: in invert_truthvalue, at fold-const.c:2993
Please submit a full bug report,
This testcase was reduced from libiberty/regex.c.
--
Summary: ICE in regex.c
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kazu at cs dot umass dot edu
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17512