[patch,gfortran] PR 22273: LEN() of INTENT(OUT) dummy

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Fri Oct 14 10:12:00 GMT 2005


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.

- Tobi

> 2005-10-13  Erik Edelmann  <erik.edelmann@iki.fi>
> 
>         PR 22273
>         * expr.c (check_inquiry): Add "len" to inquiry_function.



More information about the Gcc-patches mailing list