This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/67894] bounds of assumed-rank dummy argument not equal to actual argument


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-10-09
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
With gfortran 4.8 up to trunk (6.0) I get the following output

 Actual argument, allocatable, lbound=           3          10          16
 Dummy argument, lbound=           1           1           1
 Actual argument, lbound=           3          10          16
 Dummy argument, lbound=           1           1           1

What is your expectation?

Note that I get the same output if I replace

  real,dimension(..) :: a

with

  real,dimension(:,:,:) :: a

Note that I don't understand the rationale of

> except that when the actual argument is assumed-size, the upper bound of the 
> last dimension of the dummy argument is 2 less than the lower bound of
> that dimension.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]