rfc: multiple decls for functions
Craig Powers
enigma@hal-pc.org
Sat Jan 3 18:10:00 GMT 2009
Daniel Franke wrote:
> On Tuesday 23 December 2008 01:12:24 Daniel Franke wrote:
>> Currently applying the patch and dabbling with it myself ...
>
> Looks good so far. I'm down to one kind of regressions by now :)
>
> It turns out that backend_decls of derived types are not shared between
> namespaces (symbol.c, gfc_free_dt_list()). This wasn't a problem as long as,
> e.g. a function returning such a type had different decls in different places.
> With a unique decl for the function (that got its TYPE in another namespace)
> it appears that target and return type are not identical.
Note that dummy and actual derived type would not necessarily be
identical anyway, consider the impact of SEQUENCE. (I make this
observation based only on your discussion, I have not looked at the
actual behavior of gfortran.)
More information about the Fortran
mailing list