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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2019-02-19
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Related to/duplicate of pr67894.

Note that the reporter of pr67894 has the opposite expectation for the bounds.

I tend to agree with him:

16.9.109 LBOUND (ARRAY [, DIM, KIND])

..

Case (i): If DIM is present, ARRAY is a whole array, and either ARRAY 
is an assumed-size array of rank DIM or dimension DIM of ARRAY has 
nonzero extent, the result has a value equal to the lower bound 
for subscript DIM of ARRAY. Otherwise, if DIM is present, the result value is
1.

Case (ii): LBOUND (ARRAY) has a value whose ith element is equal to 
LBOUND (ARRAY, i), for i = 1, 2, ... , n, where n is the rank of ARRAY. 
LBOUND (ARRAY, KIND=KIND) has a value whose ith element is equal 
to LBOUND (ARRAY, i, KIND), for i = 1, 2, ..., n, where n is the rank of ARRAY.

'this' is a whole array and has a nonzero extent.

Reply via email to