[Bug fortran/59398] Wrong bounds for allocatable result and for

loximann at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 8 11:36:00 GMT 2014


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

--- Comment #8 from Sergio Losilla <loximann at gmail dot com> ---
> Steve argues that it does not say whether its actual bounds are a
> characteristic.  If you assume that only the shape matters, then
> the gfortran behavior is not a bug.  I think it is up to the experts
> to discuss this and maybe submit an interpretation request.

My bad for not reporting the outcome of that discussion.

That seems to be the case. For the moment, the lesson I learnt is never to
return arrays with a lower bound different from 1.

This kind of sucks. Why having lower bounds different than 0 sometimes only?
Either have them, or don't!

Sergio



More information about the Gcc-bugs mailing list