https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80375
Bug ID: 80375 Summary: [5/6/7 Regression] ICE in expand_expr_real_2, at expr.c:9382 with -ftrapv Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Starting from 5.1, there's ICE: $ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr38934.c -ftrapv -m32 -c /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr38934.c: In function âfâ: /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr38934.c:14:13: warning: integer constant is so large that it is unsigned if (p >= -9223372036854775808LL - (signed char) g) ^~~~~~~~~~~~~~~~~~~~~ /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/pr38934.c:14:35: internal compiler error: in expand_expr_real_2, at expr.c:9382 if (p >= -9223372036854775808LL - (signed char) g) ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.opensuse.org/> for instructions.