This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/55832] New: ICE in fold_convert_loc, at fold-const.c:1967
- From: "antoine.balestrat at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 31 Dec 2012 13:59:52 +0000
- Subject: [Bug tree-optimization/55832] New: ICE in fold_convert_loc, at fold-const.c:1967
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55832
Bug #: 55832
Summary: ICE in fold_convert_loc, at fold-const.c:1967
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: antoine.balestrat@gmail.com
Hello ! Even though I've seen quite a lot of possible duplicates, I was unable
to determine whether any of them were due to the same problem. So let's file a
new bug report and sorry if this is a dup :-)
I'm using GCC 4.8.0 as of 20121231.
$ cat fold.c
int g, b;
void f(void)
{
int a = 0;
unsigned char c;
unsigned short d = 0, *p = &a;
if(g)
a--;
if(b && a < (d = 1))
for(;; a++);
for(; a < 15; a++)
b |= d <= c;
*p ? : (g = 0);
}
$ xgcc -w -O3 fold.c
fold.c: In function âfâ:
fold.c:3:6: internal compiler error: in fold_convert_loc, at fold-const.c:1967
void f(void)
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.