[J3] please try running this program

Robert Corbett rpcorbett at att.net
Mon Oct 24 12:20:16 UTC 2022


      PROGRAM MAIN
        TYPE T
          INTEGER(KIND(X)) Y
        END TYPE T
        CALL SUBR1
        RETURN
      CONTAINS
        SUBROUTINE SUBR1
          X = 1
          CALL SUBR2
          PRINT *, X
        END SUBROUTINE SUBR1
        SUBROUTINE SUBR2
          X = 2
          PRINT *, X
        END SUBROUTINE SUBR2
      END
The scope rules for implicit declarationsbetween Fortran 2008 with Corrigendum 1and Fortran 2018.  This program determineswhich scope rules are used.
Robert Corbett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20221024/41cb13ff/attachment.htm>


More information about the J3 mailing list