[J3] [EXTERNAL] Re: please try running this program
Clune, Thomas L. (GSFC-6101)
thomas.l.clune at nasa.gov
Mon Oct 24 13:42:29 UTC 2022
To follow up on Steve’s point:
bash-3.2$ nagfor -kind=unique corbett.F90
NAG Fortran Compiler Release 7.1(Hanzomon) Build 7113
Error: corbett.F90, line 3: KIND value (301) does not specify a valid representation method
Errors in declarations, no further processing for MAIN
[NAG Fortran Compiler error termination, 1 error]
From: J3 <j3-bounces at mailman.j3-fortran.org> on behalf of j3 <j3 at mailman.j3-fortran.org>
Reply-To: j3 <j3 at mailman.j3-fortran.org>
Date: Monday, October 24, 2022 at 9:39 AM
To: j3 <j3 at mailman.j3-fortran.org>
Cc: Steve Lionel <steve at stevelionel.com>
Subject: [EXTERNAL] Re: [J3] please try running this program
On 10/24/2022 8:20 AM, Robert Corbett via J3 wrote:
INTEGER(KIND(X)) Y
Aside from the scoping question, this declaration improperly assumes that one can declare an integer using the kind number of a real. If you had used REAL instead of INTEGER it would have been fine.
On Bob's question, I see that the wording change in F08 Corrigendum 1 came from interp F03/123, which contains a similar example. The original paper for this edit was 10-244. I haven't yet found a paper that removes the wording added in that paper, but I see that F18's version is simpler and does not attempt to state the scope in which the variable is declared.
Steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20221024/9d58f60f/attachment.htm>
More information about the J3
mailing list