--- Comment #2 from pault at gcc dot gnu dot org 2009-02-19 05:40 ---
I agree with Steve and have marked this as WONTFIX.
You should use another pointer and allocate to that if you want to avoid the
automatic deallocation on leaving scope.
Paul
--
pault at gcc dot gnu dot org chang
--- Comment #1 from kargl at gcc dot gnu dot org 2009-02-14 16:00 ---
I'm inclined to think that this should be closed with WONTFIX.
Deallocation of an allocated array when a subprogram returns
is a fundamental concept of Fortran. A user should know what
to expect and code accordingly.