[Bug fortran/83705] [8/9/10 Regression] ICE/wrong code with large values of REPEAT after revision r256284
m.diehl at mpie dot de
gcc-bugzilla@gcc.gnu.org
Sun Mar 29 10:10:20 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83705
Martin Diehl <m.diehl at mpie dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |m.diehl at mpie dot de
--- Comment #15 from Martin Diehl <m.diehl at mpie dot de> ---
Just as an addon: Compiling the following code
program integer_conversion
implicit none
integer :: i
i = 5
print*, 'b'//repeat('a',i)
end program integer_conversion
with
-Wconversion-extra
gives the message
Warning: Conversion from INTEGER(4) to INTEGER(8) at (1) [-Wconversion-extra]
This warning is of course not really a problem, but since it is related to the
handling of the NCOPIES argument of repeat it might be related to this bug.
I'm using gfortran 9.3.0.
More information about the Gcc-bugs
mailing list