[J3] Question involving explicit initialization

Vipul Parekh parekhvs at gmail.com
Sat May 4 10:46:23 EDT 2019


Does the following code conform to the Fortran standard?

--- begin code ---
module m
contains
   subroutine sub1()
      integer :: i = 0
      i = i + 1
   end subroutine
   subroutine sub2()
      integer :: i = 0
      i = i + 1
   end subroutine
end module
--- end code ---

None of the compilers I tried raise any errors with above.

Thanks and regards,
Vipul Parekh


More information about the J3 mailing list