https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117820

--- Comment #3 from anlauf at gcc dot gnu.org ---
(In reply to Jerry DeLisle from comment #2)
> If I add a couple more print statements:
> 
>   print *, -9223372036854775807
>   print *, -9223372036854775808
> 
> $ gfc -frange-check -Wall pr117820.f90 
> pr117820.f90:16:31:
> 
>    16 |   print *, -9223372036854775807
>       |                               1
> Error: Integer too big for its kind at (1). This check can be disabled with
> the option ‘-fno-range-check’
> pr117820.f90:17:31:
> 
>    17 |   print *, -9223372036854775808
>       |                               1
> Error: Integer too big for its kind at (1). This check can be disabled with
> the option ‘-fno-range-check’
> 
> The error at line 16 is not correct.

Of course it is!  But when you add _8 you get what you want.

BTW: why does the integer(4) case not show the same problems?

Reply via email to