This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/67894] bounds of assumed-rank dummy argument not equal to actual argument
- From: "john.donners at surfsara dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Oct 2015 12:56:50 +0000
- Subject: [Bug fortran/67894] bounds of assumed-rank dummy argument not equal to actual argument
- Auto-submitted: auto-generated
- References: <bug-67894-4 at http dot gcc dot gnu dot org/bugzilla/>
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.