This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25080] ICE/missing error on different ranks for dummy and actual arguments
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jan 2007 21:58:17 -0000
- Subject: [Bug fortran/25080] ICE/missing error on different ranks for dummy and actual arguments
- References: <bug-25080-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pault at gcc dot gnu dot org 2007-01-01 21:58 -------
(In reply to comment #2)
> We now reject the reporter's code as we should. We could still reject the code
> in comment #1, but none of the other compilers I tried reject it. Marking this
> as low priority (I think it will be fixed by Paul Thomas' patch for in-file
> checking).
>
12.4.1.1 Actual arguments associated with dummy data objects
....
If the dummy argument is an assumed-shape array, the rank of the dummy
argument shall agree with the rank of the actual argument.
12.4.1.4 Sequence association
....
The rank and shape of the actual argument need not agree with the rank and
shape of the dummy argument, but the number of elements in the dummy argument
shall not exceed the number of elements in the element sequence of the actual
argument. If the dummy argument is assumed-size, the number of elements in the
dummy argument is exactly the number of elements in the element sequence.
Apart from the requirement on the number of elements in the dummy (PR25071),
gfortran complies with the standard and, as noted already, fixes the original
bug.
I am therefore marking this bug as fixed.
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25080