ICE in trunc_int_for_mode, at explow.c:55

Bug #1667761 reported by Matthias Klose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-4.8 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

seen on aarch64-linux-gnu with gcc-4.8.x everywhere, fixed in 4.9 (worked around with -O1)

$ cat trunctfdf2.i
long a;
double b;
double fn1() {
  union {
    long double f;
    __uint128_t i;
  } c = {b};
  __uint128_t d = c.i & 2;
  a = 1;
  long e = 1 | d;
  return e;
}

$ gcc -std=gnu99 -c -g -O2 trunctfdf2.i
trunctfdf2.i: In function 'fn1':
trunctfdf2.i:12:1: internal compiler error: in trunc_int_for_mode, at explow.c:55
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.

Matthias Klose (doko)
Changed in gcc-4.8 (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.