[Bug fortran/44879] MOVE_ALLOC rejects FROM= which is a function result

2010-07-08 Thread kargl at gcc dot gnu dot org


--- Comment #2 from kargl at gcc dot gnu dot org  2010-07-09 06:02 ---
Is there a testsuite program to check this?
Perhaps, your code should be added so the
correct behavior doesn't get unfixed.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44879



[Bug fortran/44879] MOVE_ALLOC rejects FROM= which is a function result

2010-07-08 Thread burnus at gcc dot gnu dot org


--- Comment #1 from burnus at gcc dot gnu dot org  2010-07-09 05:47 ---
As Malcom Cohen points out:

"If a dummy argument has INTENT (OUT) or INTENT (INOUT), the actual argument
shall be definable." (F2008, 12.5.2.4, paragraph 17)

And as "FROM" is a "INTENT(INOUT) argument." (cf. above), it needs to be
definable and thus may not be a function (result). That's exactly what gfortran
checks :-)

Close as invalid.


-- 

burnus at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution||INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44879