This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/59398] Wrong bounds for allocatable result and for
- From: "loximann at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Dec 2013 20:42:29 +0000
- Subject: [Bug fortran/59398] Wrong bounds for allocatable result and for
- Auto-submitted: auto-generated
- References: <bug-59398-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59398
--- Comment #2 from Sergio Losilla <loximann at gmail dot com> ---
There should be no need to deallocate. From the excerpt you copied: "If the
variable is an allocated allocatable variable, it is deallocated if expr is an
array of different shape".
For the second, the obtained shape should *always* be the same. It looks like
gfortran will not touch LHS if it is allocated and has the same size as RHS.
And that should not be the case.
By the way, the Intel compiler is quite crazy. Version 11 something works as
expected in a platform I have access to, but 12 and 13 fail one or both
assignments!