[J3] please try running this program

Malcolm Cohen malcolm at nag-j.co.jp
Tue Oct 25 00:45:49 UTC 2022


> The scope rules for implicit declarations

between Fortran 2008 with Corrigendum 1

and Fortran 2018. 

 

We did not change the scoping rules for this in Fortran 2018. And we know this because we did not list such a change in the compatibility clauses.

 

There is not now, and never has been, a difference in the scoping rules for variables with their types declared implicitly vs declared explicitly.

 

Now maybe the wording has changed so that it’s harder to work out some of the edge cases. I can well believe that. Wording improvements are welcome, though unless it reaches the level of “obviously correct”, I am not going to rush into anything. (Even if we don’t improve the wording until after publication, immediate hasty action would be ill-advised.)

 

In my opinion, reinstating the text that badly duplicated some of the scoping rules in the IMPLICIT statement subclause would not be an improvement. If there is a problem with the scoping rules, the scoping clause must surely be where the fix should lie.

 

Cheers,

-- 

..............Malcolm Cohen, NAG Oxford/Tokyo.

 

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


More information about the J3 mailing list