https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99236
Bug ID: 99236 Summary: Undefined behaviour in libgcc Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: zeccav at gmail dot com Target Milestone: --- ! must be compiled and run ! It does not need sanitized compiler, but ! must be loaded with sanitized version of libgcc_s.so.1 ! ldd a.out -> libgcc_s.so.1 => /home/vitti/local/gcc-150221-undefined/lib64/libgcc_s.so.1 !../../../gcc-150221/libgcc/libgcc2.c:1837:31: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself ! libgcc2.c:1837 -> "unsigned int n = m < 0 ? -m : m;" a = 3.0 b = a**(-2147483647_4-1_4) end