[J3] An inquiry about the extension with pointer function reference introduced in Fortran 2008

Vipul Parekh parekhvs at gmail.com
Mon Mar 8 15:28:31 UTC 2021


On Mon, Mar 8, 2021 at 8:08 AM Bill Long via J3 <j3 at mailman.j3-fortran.org>
wrote:

> I guess I don't see a problem with the program.  I see it compile with no
> error messages, and “execute”.  ..
>

 Bill,

Thanks for looking into this.

Two processors I tried complained about the 'call increment( get() )'
statement on line 14.

One processor issued, "Error: 'get' in variable definition context (actual
argument to INTENT = OUT/INOUT) at (1) is not a variable."

And the other, "An actual argument is an expression or constant; this is
not valid since the associated dummy argument has the explicit INTENT(OUT)
or INTENT(INOUT) attribute."

Does the above change your view on "I don't see a problem with the program"?

Thanks,
Vipul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20210308/b35036a7/attachment.htm>


More information about the J3 mailing list