In the code from
gfortran detect the problems coming from the undefined 'j', but not the fact that 'df4_dxi' is used before it is defined. Am I missing a relevant option or is it a missing feature/bug in gfortran/gcc?
Reduced test case:
program prandtl meyer
integer :: i, j
integer, parameter :: imax = 100
integer, parameter :: jmax = 40
real, dimension(0:jmax,0:imax) :: f1, f1_bar
do i = 0, imax-1
do j = 1, jmax-1
f1_bar(j,i+1) = f1(j,i)
end program prandtl meyer
[ibook-dhum] f90/bug% gfc -O -Wuninitialized -Wall timing/prandtl_red.f
I think it is a duplicate of PR27120.
It's indeed a duplicate of 27120.
*** This bug has been marked as a duplicate of 27120 ***
(In reply to Francois-Xavier Coudert from comment #2)
> It's indeed a duplicate of 27120.
It seems it wasn't.