[Bug sanitizer/80536] [6/7/8 Regression] UBSAN: compile time segfault

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 9 12:56:00 GMT 2017


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Better testcase:

int
foo (int i)
{
  return ((i * (unsigned long long) (-0 + 1UL)) * 2) % 1;
}


More information about the Gcc-bugs mailing list