This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/22571] Reject derived types for dummy arguments declared in the subroutine unless they are SEQUENCE
- 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: 3 Oct 2006 15:06:21 -0000
- Subject: [Bug fortran/22571] Reject derived types for dummy arguments declared in the subroutine unless they are SEQUENCE
- References: <bug-22571-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from pault at gcc dot gnu dot org 2006-10-03 15:06 -------
(In reply to comment #5)
> The problem lies in the absence of global actual/formal argument checking;
> where there is an explicit interface, all works correctly.
Actually, it is not as bad as I thought:
(i)'p' being a non-sequence type dummy in a non-contained procedure should
generate an error because there is no way in which type association can occur
between the caller and 'a'.
(ii) The same is true of the actual argument in the call to 'a' from 'b'; since
'a' is external, a sequence type is required.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22571