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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2017-11-11
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
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.

Reply via email to