[patch,gfortran] PR 22607: PURE return-by-reference functions
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Wed Nov 9 00:04:00 GMT 2005
Erik Edelmann wrote:
> Here's a patch for PR 22607; PURE (including ELEMENTAL)
> return-by-reference functions don't currently work. If we
> avoid setting
>
> DECL_IS_PURE (fndecl) = 1;
>
> in trans-decl.c(build_function_decl), the problem is fixed.
>
> I do, however, not know much about the backend. Among the things
> I don't know is whether DECL_IS_PURE (fndecl) = 1 is supposed to
> work for return-by-ref. functions or not (might this actually be
> a backend bug?). Comments from people with better understanding
> of the backend are wellcome.
>
> Bootstrapped & tested on Linux/x86, Ok?
Yes, I guess this borders on obvious.
- Tobi
:REVIEWMAIL:
More information about the Fortran
mailing list