[patch,gfortran] PR 22607: PURE return-by-reference functions
Richard Henderson
rth@redhat.com
Tue Nov 8 22:10:00 GMT 2005
On Tue, Nov 08, 2005 at 11:54:36PM +0200, Erik Edelmann wrote:
> 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.
If the function writes to memory, it isn't "pure" in the
backend sense. Return-by-ref would seem to violate that.
r~
More information about the Fortran
mailing list