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

--- Comment #4 from John Donners <john.donners at surfsara dot nl> ---
I think that you meant an assumed-shape array with

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

The assumed-shape array is described in section 5.5.8.3 of the draft standard
and it explicitly says that the lower bound is 1, unless specified for the
dummy argument. 

There is no such remark in section 5.5.8.7 for the assumed-rank entity. It
wouldn't be possible to specify the lower bound, since the number of dimensions
is unknown in this case.


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