https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92639
--- Comment #2 from Olivier Cessenat <cessenat at gmail dot com> --- integer(kind=4) valid range is -2147483648_4 to +2147483647_4. So I consider this is a gfortran bug. Moreover, if -2147483648_4 is considered out of range, why -2147483647_4 - 1_4 is not ? Constant elimination makes it evaluated to -2147483648_4. I disagree with the term "there are no negative integers" [-2147483648_4 is equal to +2147483648_4] Other compilers, such as aocc, nvfortran, ifort, oneapi are OK with that Thanks