For the code
program main
implicit none
integer, parameter :: n = 10
real :: x(n), dx(n)
integer :: i
call random_number(x)
do i=1,n
if (i > 1) then
dx(i) = x(i) - x(i-1)
else
dx(i) = 0.0
end if
end do
print*,dx
end program main
gfortran -Wextra says for GNU Fortran (GCC) 13.
The previous message was garbled and wrongly titled.
I suggest that "2018" be added to the description of gfortran at
https://gcc.gnu.org/wiki/GFortran
Vivek Rao
The gfortran page https://gcc.gnu.org/wiki/GFortran says, "Gfortran is the name
of the GNU Fortran project, developing a free Fortran 95/2003/2008 compiler for
GCC, the GNU Compiler Collection." Since Fortran 2018 features are being
added, I suggest that 95/2003/2008 be replaced by 95/2003/2008