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: [email protected]
ReportedBy: [email protected]
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.