[Bug fortran/59398] Wrong bounds for allocatable result and for
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Thu Dec 5 20:53:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59398
--- Comment #3 from Harald Anlauf <anlauf at gmx dot de> ---
(In reply to Sergio Losilla from comment #2)
> 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".
shape(-3:3) == shape (-2:4) == shape(1:7)
Shape is UBOUND-LBOUND+1.
> 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.
No, gfortran is right here, see above.
> 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!
Funny! Would you please report to the Intel forum?
More information about the Gcc-bugs
mailing list