https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80097
Bug ID: 80097 Summary: internal compiler error in c_fully_fold_internal with std=c89 and -fsanitize=float-divide-by-zero Product: gcc Version: 6.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: max at maxbruckner dot de Target Milestone: --- Created attachment 40999 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40999&action=edit C file to reproduce the bug When building the attached C source file with GCC 6.3.1 or GCC 5.4.0 on an x86 (32bit) system and the compiler flags '-std=c89 -fsanitize=float-divide-by-zero', an internal compiler error happens. It doesn't happen on x86_64, ppc or armv7 from what I tested. Output for GCC 5.4.0: gcc-5 -std=c89 -fsanitize=float-divide-by-zero bug.c -c bug.c: In function ‘bug’: bug.c:3:2: internal compiler error: in c_fully_fold_internal, at c-family/c-common.c:1545 int test = (1 / number >= 1); ^ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions. make: *** [Makefile:2: bug] Error 1 Output for GCC 6.0.3: cc -std=c89 -fsanitize=float-divide-by-zero bug.c -c bug.c: In function ‘bug’: bug.c:3:2: internal compiler error: in c_fully_fold_internal, at c/c-fold.c:558 int test = (1 / number >= 1); ^~~ Please submit a full bug report, with preprocessed source if appropriate. See <https://bugs.archlinux.org/> for instructions. make: *** [Makefile:2: bug] Error 1