This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch,gfortran] PR 22273: LEN() of INTENT(OUT) dummy
- From: Erik Edelmann <erik dot edelmann at iki dot fi>
- To: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 14 Oct 2005 13:52:01 +0300
- Subject: Re: [patch,gfortran] PR 22273: LEN() of INTENT(OUT) dummy
- References: <20051013144251.GA31781@acclab.helsinki.fi> <434F849E.8030705@physik.uni-muenchen.de>
On Fri, Oct 14, 2005 at 12:12:46PM +0200, Tobias Schlüter wrote:
> Erik Edelmann wrote:
> > Is there any reason why the len() intrinsic is excluded from the
> > inquiry function list in expr.c/check_inquiry()? By including it
> > (see attached patch) we would fix PR 22273.
>
> There are only two reasons I can think of: either to raise awareness of the
> FIXME comment :) or because this code was originally only intended for numeric
> inquiry functions, as their value can always be evaluated at compile time.
> But since we also allow array inquiry functions (lbound etc.), I think this is
> ok, once you update the comment further down in check_inquiry.
Ok, here's an updated patch with fixed comment (I removed the
word 'numeric', and reformatted it). Please commit if OK.
Erik
2005-10-14 Erik Edelmann <erik.edelmann@iki.fi>
PR 22273
* expr.c (check_inquiry): Add "len" to inquiry_function
and update comment.