fix for the multiple-decl problem - please test
Daniel Franke
franke.daniel@gmail.com
Mon Jan 19 20:22:00 GMT 2009
On Monday 19 January 2009 19:46:44 Tobias Burnus wrote:
> Daniel Franke wrote:
> >> Anyway, I am raising this question because your approach looks as if
> >> it is entirely focussed on the multiple decl problem and that you will
> >> attack the other issues separately, largely because you associate
> >> external decls in the backend tree. Maybe you have some plan in mind
> >> that I have not figured out? :-)
> >
> > The plan is simple: make it work :)
>
> I'm not sure whether it should be combined with that patch or whether it
> should be a separate issue, but not only for declarations there is an
> issue but also for TYPES (PR 38913):
>
> Example:
>
> CHARACTER(LEN=1) :: str1
> contains
> subroutine foo()
> CHARACTER(LEN=1) :: str2
>
> Here, str1 and str2 should be of the same type, but gfortran does not
> mark them as such.
When working on this, I was mightily surprised when it turned out that derived
types suffered the same problem as functions - if even intrinsic types are
affected, then Paul's approach is by far superior to my attempt. As I
understand it, all issues of this kind would be fixed in one go.
Paul, any progress? :)
Cheers
Daniel
More information about the Fortran
mailing list