https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67338
Bug ID: 67338 Summary: fold-const sanitizer runtime error in roundup_loc Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- Running a sanitized version of gcc 5.2.0 I get the following: // ../../gcc-5.2.0/gcc/fold-const.c:16036:8: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself // fold-const.c:16036 "val &= - (int) divisor;" // int should be wide_int? // Target: x86_64-unknown-linux-gnu // COLLECT_GCC_OPTIONS='-mtune=generic' '-march=x86-64' struct { __attribute__((aligned (1 << 28))) double a; };