[J3] BLOCK construct change

Robert Corbett rpcorbett at att.net
Tue Jun 28 22:11:56 UTC 2022

Here is my emended example.

          REAL X
          DATA X/0.0/
        END BLOCK

The program is allowed by Fortran 2008.  The program violates
syntax rule R1109 in both Fortran 2018 and the current draft
standard.  The problem is that the DATA statement is a
/declaration-construct/, but not a /specification-construct/.
Syntax rule R1109 requires a /declaration-construct/ to be
followed by a /specification-construct/, which is not the casein this example.  Switching the order of the REAL statementand the DATA statement would make the program consistent withsyntax rule R1109.
Bob Corbett
   On Tuesday, June 28, 2022 at 02:43:08 PM PDT, Robert Corbett via J3 <j3 at mailman.j3-fortran.org> wrote:  
 You are correct.  I made a bracketing error.  I thought the /specification-construct/ is required if the USE statement is present.  I still think there is a possible error, but I shall need a different example.
Bob Corbett

On Jun 28, 2022, at 2:18 PM, Steve Lionel via J3 <j3 at mailman.j3-fortran.org> wrote:

On 6/28/2022 4:02 PM, Robert Corbett via J3 wrote:
The program
 conforms to the Fortran 2008 standard, but it violates syntax
 rule R1109 of the Fortran 2018 standard and the Fortran 202X
 draft standard.
I may be slow today, but I don't see how it violates the syntax rules. Can you explain? 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20220628/3a28b7cf/attachment-0001.htm>

More information about the J3 mailing list