https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87826

            Bug ID: 87826
           Summary: ubsan: gimple-ssa-store-merging.c:281
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

$ ../results.265631.ubsan/bin/gcc -c -O3 bug472.c
../../trunk/gcc/gimple-ssa-store-merging.c:281:12: runtime error: shift
exponent 64 is too large for 64-bit type 'long unsigned int'
$ 

For this C code:

typedef a;
*b;
c;
d() {
  a e, f = 8 + 8;
  e = 0;
  for (; e < f; ++e)
    b[e] = c >> e * 8;
}

The bug seems to be sometime before revision 264725.

Reply via email to