------- Comment #3 from burnus at gcc dot gnu dot org  2007-02-21 17:03 -------
Paul,

> > fortcom: Warning: dtgv.f90, line 9: Recursive array-valued function without
> > result variable ambiguous   [TEST]
> Goes right to the nub of it.  Within test, is an r-value expression that
> contains a reference to  test (<int_expr>) a reference to the function result
> array or a recursive call to test?

Well, it is easy:
"12.5.2.1 Function subprogram"
"If RESULT is not specified, the result variable is <function- name> and all
occurrences of the function name in execution-part statements are references to
the result variable."

See also:
http://gcc.gnu.org/ml/fortran/2006-05/msg00342.html


-- 

burnus at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-02-21 17:03:09
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30876

Reply via email to