This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC, Fortran, (pr66775)] Allocatable function result
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>, Andre Vehreschild <vehre at gmx dot de>
- Cc: GCC-Patches-ML <gcc-patches at gcc dot gnu dot org>, GCC-Fortran-ML <fortran at gcc dot gnu dot org>, Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- Date: Fri, 10 Jul 2015 18:20:47 +0200
- Subject: Re: [RFC, Fortran, (pr66775)] Allocatable function result
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sfrmc.priv.atos.fr; dkim=none (no signature); dkim-adsp=none (no policy) header dot from=mikael dot morin at sfr dot fr
- References: <20150709122518 dot 08388506 at vepi2> <20150709175047 dot GA70209 at troutmask dot apl dot washington dot edu> <DE4F2D8C-D4E3-4CE3-8991-A0F372C555AA at gmx dot de> <20150709194131 dot GA29199 at troutmask dot apl dot washington dot edu> <20150710114432 dot 2adff6d8 at vepi2> <20150710134121 dot GA91910 at troutmask dot apl dot washington dot edu>
Hello all,
I'm not completely convinced by the standard excerpts that have been
quoted about this topic, as they don't have any explicit mention of
allocatable variables/expressions.
For what it's worth, in my opinion, the handling of allocatable that was
proposed by Andre makes sense to me. It's consistent with what is done
for derived type assignment, the lhs' allocatable components are
deallocated if their rhs counter part are unallocated. Doing the same
for whole objects would be, well, consistent.
What is done by the other compilers?
Mikael
- References:
- [RFC, Fortran, (pr66775)] Allocatable function result
- Re: [RFC, Fortran, (pr66775)] Allocatable function result
- Re: [RFC, Fortran, (pr66775)] Allocatable function result
- Re: [RFC, Fortran, (pr66775)] Allocatable function result
- Re: [RFC, Fortran, (pr66775)] Allocatable function result
- Re: [RFC, Fortran, (pr66775)] Allocatable function result