To: J3 J3/14-202 From: Van Snyder Subject: in and Date: 2014 June 24 Reference: 14-007r1, 14-101r1 1. Introduction =============== Fortran 2008 added the ability to optionally specify the type of the index-name directly in a forall-header (R752), allowing the programmer to specify the type of this construct entity at the point where it is created, rather than inheriting the type from the enclosing scope. This applies to FORALL and DO CONCURRENT. This feature was not also applied to the ac-do-variable in an array constructor implied-DO (R473), which, as a statement entity it would also benefit from the option of local type specification. This omission creates an asymmetry in the language that should be corrected in the next standard. A similar case can be made for the data-i-do-variable in data-implied-do (R539), which is also a statement entity. Note that io-implied-do does not create a statement or construct entity, so this issue does not apply there. Suggested edits, in reference to 14-007r1, are provided to correct this defect. SUBMITTED BY: Steve Lionel 2. EDITS to 14-007r1 ==================== [Intro p2 first item somwhere] Insert "The kind of a do variable can be specified within an array constructor or data-implied do." [55:9 R404] Replace "INTEGER [ ]" with "". [55:17 C412+] Insert a syntax rule: "R405a <> INTEGER [ ]" [67:3 R431] Replace "INTEGER [ ]" with "". [87:14 4.8 R474] Before "" insert "[ :: ]". [107:21 5.4.7 R540] Before "" insert "[ :: ]". [174:26 8.1.6.2 R819] Replace "" with "". [174:30 8.1.6.2 C814] Delete constraint C814. [462:26 16.4p4] Replace "variable that" with "variable. If appears in or , it is of type integer as specified in 4.4.2.2; otherwise it". [462:28 16.4p4] Replace "; it" with ". It". {Compare to [462:36].} [462:33 16.4p5] Replace "" with "". [463:1 6.4p6] Replace "If ... " with "If does not appear in a ".