I encountered a curious situation with the attached program. It makes a forward reference to an argument and this is accepted by both gfortran and flang-new. However, ifx protests:
chk_forward_reference_dimension.f90(23): error #6415: This name cannot be assigned this data type because it conflicts with prior uses of the name. [B]
integer, intent(in) :: b
---------------------------^
If I change the name b to nb (so, under the ancient rules of implict typing it would be an integer), then ifx accepts the program.
My question: is ifx right to reject it when the argument is called b?
I think it is clear that whatever the correct behaviour, it should not depend on the argument name.
chk_forward_reference_dimension.f90 (714 Bytes)