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: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 09 Oct 2015 12:13:05 +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
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.