This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30876] Array valued recursive function rejected
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Feb 2007 17:03:09 -0000
- Subject: [Bug fortran/30876] Array valued recursive function rejected
- References: <bug-30876-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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