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: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jun 2006 07:04:06 -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 #5 from paul dot richard dot thomas at cea dot fr 2006-06-23 07:04 -------
It should be noted that encasing the two subroutines in a module produces the
correct error
In file pr22571.f90:15
call a(q)
1
Error: Type/rank mismatch in argument 'p' at (1)
The problem lies in the absence of global actual/formal argument checking;
where there is an explicit interface, all works correctly.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22571