This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: rfc: multiple decls for functions
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: FX <fxcoudert at gmail dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Sat, 20 Dec 2008 00:15:42 +0100
- Subject: Re: rfc: multiple decls for functions
- References: <3F3D1535-55BE-42E2-8A3F-FAC8071B00BB@gmail.com>
On Friday 19 December 2008 23:32:02 FX wrote:
> That is, the decl created for f in:
>
> subroutine test(x)
> integer x(1)
> end subroutine test
>
> is different from the one created when translating:
>
> integer x(1)
> call test(x)
>
> One has GFC_ARRAY_TYPE_P for its argument and the other doesn't.
Dear FX,
I wondered about this, i.e. the more general case of additional information of
any kind that becomes available later in the file, and assumed that it should
be possible to tack on additional things to an existing decl?!
I haven't looked into details yet, I wanted to learn about possible pitfalls
first - this is one then of them.
Could you elaborate a bit on the "file-scope resolution"? Seems I missed your
point there?!
Thanks!
Daniel