[Bug fortran/92896] [10 Regression] ICE in reduce_unary, at fortran/arith.c:1283
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Tue Dec 10 20:31:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92896
--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---
With a plain array constructor :
$ cat z2.f90
program p
print *, [integer :: 1, [integer(8) :: '2']]
end
$ gfortran-10-20191208 -c z2.f90 -fdec -fno-range-check
$ gfortran-10-20191208 -c z2.f90 -fdec
z2.f90:2:41:
2 | print *, [integer :: 1, [integer(8) :: '2']]
| 1
Error: Arithmetic overflow converting INTEGER(8) to INTEGER(4) at (1). This
check can be disabled with the option '-fno-range-check'
z2.f90:2:41:
2 | print *, [integer :: 1, [integer(8) :: '2']]
| 1
Error: Arithmetic overflow converting INTEGER(8) to INTEGER(4) at (1). This
check can be disabled with the option '-fno-range-check'
More information about the Gcc-bugs
mailing list