[J3] Question on Table 10.8: Intrinsic assignment type conformance
Vipul Parekh
parekhvs at gmail.com
Thu Jun 13 18:44:34 EDT 2019
On Thu, Jun 13, 2019 at 6:03 PM Bill Long via J3
<j3 at mailman.j3-fortran.org> wrote:
>
> Gets a warning message:
>
> > ftn test.f90
>
> function f() result(r)
> ^
> ftn-287 crayftn: WARNING F, File = test.f90, Line = 12, Column = 23
> The result of function name "R" in the function subprogram is not defined.
>..
Bill,
Thanks for your response. A couple of questions:
1) Do you think the warning is accurate considering section 19.6.5 in
the standard on "Events that cause variables to become defined". My
impression is the instruction, "allocate ( e_t :: r )", in the
function f leads to the function result to be defined, is that not
correct?
2) Does the Cray compiler proceed to process the result of the code
following the warning? Or does it stop there? Meaning, did Cray
compiler process "b = f()" instruction and think it to be conforming
to the standard?
Regards,
Vipul
More information about the J3
mailing list