[J3] END statement

Steven G. Kargl kargl at uw.edu
Mon Dec 5 21:28:54 UTC 2022


On Mon, Dec 05, 2022 at 09:17:07PM +0000, Steidel, Jon L via J3 wrote:
> Consider the following two source lines:
> 
>       subroutine sub (); end subroutine; integer i
>       end program
> 

(snip)

> 
> It seems to me the code above should be standard conforming.
>

I would assume 

  4.1.4 Syntax conventions and characteristics

  Any syntactic class name ending in "-stmt" follows the source
  form statement rules: it shall be delimited by end-of-line or
  semicolon, ...

applies.  The above is equivalent to

       subroutine sub ()  ! <-- subroutine-stmt
       end subroutine     ! <-- end-subroutine-stmt
       integer i
       end program

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3950 bytes
Desc: not available
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20221205/6cfb3629/attachment.bin>


More information about the J3 mailing list