The problem lies in defining the NAMELIST
after giving the variable a
a value. As you saw, deleting/commenting that line removes the error, but so does moving the declaration of a
into SUBROUTINE load
.
My guess is that ifort
ignores that line while gfortran
does not.