https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82937

Paul Thomas <pault at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |pault at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #2 from Paul Thomas <pault at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #1)
> AFAIK the lower bounds of array slices are always 1:
> 
>   write(*,"(A,2('(',I2,',',I2,')'))") "arr(1,1,:,:) bounds are
> ",lbound(arr(1,1,:,:),1),&
>     &                        ubound(arr(1,1,:,:),1),&
>     &                        lbound(arr(1,1,:,:),2),ubound(arr(1,1,:,:),2)
> 
> arr(1,1,:,:) bounds are ( 1, 7)( 1,10)
> 
> So I am inclined to consider that
> 
> myarr bounds are ( 1, 7)( 1,10)
> 
> is correct and also the error with -fcheck=bounds. IMO this PR is INVALID.
> 
> If you disagree, you may ask the question on comp.lang.fortran.

See the first posting from spectrum on
https://groups.google.com/forum/#!topic/comp.lang.fortran/QbMFCNP_DuY

The conclusion of this long thread was that Dominique's interpretation above is
correct and that gfortran was changed accordingly.

Closing as INVALID.

Best regards

Paul

Reply via email to