[patch, fortran] More on allocatable dummy arguments.

Erik Edelmann erik.edelmann@iki.fi
Thu Mar 9 21:53:00 GMT 2006


On Thu, Mar 09, 2006 at 09:18:15PM +0100, Paul Thomas wrote:
> Erik,
> 
> >:ADDPATCH:
> >
> >Thanks to Paul and Steve for looking at my 'allocatable function
> >result' patch.  In the meantime, I've found a bug for allocatable
> >dummy arguments in functions returning arrays. (I'm pretty sure I
> >tested that, but appearantly not).  
> >
> >Fix in short: Treat allocatable dummy arguments in trans-expr.c
> >(gfc_add_interface_mapping) the same way as pointer dummy
> >arguments.  
> >
> >Tested on trunk, Linux/x86. Ok to commit?
> >
> Perhaps a > grep pointer gcc/fortran/trans-*.c might be in order?

Hm, produces 228 lines of output, most of which is not relevant
to dummy arguments.  But I agree it could be a good idea to
analyze it more thouroughly.

> The patch is fine and regtests on an FC3/Athlon, together with the other 
> two patches.  OK to commit.

Thanks. Committed.


        Erik



More information about the Gcc-patches mailing list