[Bug fortran/96911] bug with Intrinsic shifta/shiftl/shiftr

zhen.xu@compiler-dev.com gcc-bugzilla@gcc.gnu.org
Fri Sep 4 00:54:28 GMT 2020


--- Comment #3 from zhen.xu@compiler-dev.com ---
(In reply to anlauf from comment #1)
> Error: Integer too big for its kind at (1). This check can be disabled with
> the option '-fno-range-check'
> Why don't you read what gfortran is telling you, and acting appropriately?

The fact is -128 is surely not too big for integer(1). The below code is
compiled by gfortran and can print out -128 properly.
program testint
      integer(1) :: x = -128
      print *, x

More information about the Gcc-bugs mailing list