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:23:55 +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 #2 from John Donners <john.donners at surfsara dot nl> ---
Hello Dominique,
thank you for your reaction. Yes, I should have added the output and my
expectation. I expected to see the following:
Actual argument, allocatable, lbound= 3 10 16
Dummy argument, lbound= 3 10 16
Actual argument, lbound= 3 10 16
Dummy argument, lbound= 3 10 16
because the standard says that the bounds of the actual and the dummy argument
are the same for assumed-rank arrays.
Indeed, I'm equally puzzled about the last part of that paragraph in the
standard, but I included it for completeness. I don't think it applies here,
because the actual argument is not assumed-size.
(just as a remark: the Cray compiler gives me the expected answer, while the
Intel compiler returns '3 10 16' in the former case and '1 1 1' in the latter
case.)