[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#916388: gcc-8: crash with command line switch -fsanitize=float-cast-overflow (upstream bug 88426)



Source: gcc-8
Version: 8.2.0-12
Severity: normal
Tags: upstream

GCC crashing if try to compile this code:
void func(void)
{
    const float var = 0;
    (int)(var < 0 ? var : 0);
}

with command:
gcc -S -fsanitize=float-cast-overflow crash.c

Bug already fixed in upstream trunk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88426


Reply to: