[Patch, fortran] PR25099 - elemental subroutine argument conformance checking

THOMAS Paul Richard 169137 paul.richard.thomas@cea.fr
Fri Apr 21 16:14:00 GMT 2006


Dominique,

I have reconstructed the conformance checking patch. Here it is:

:ADDPATCH fortran:

The attached patch fixes PR25099 by implementing conformance checking
of the actual arguments of elemental subroutines.

The patch is trivial and the testcase is based on that in the PR, with
the addition of checks on operator assignments. Assumed_size_refs_1.f90
need correcting for one non-conforming subroutine call.

I have added the corrected version of elemental_subroutine_3.f90 but
have not included it in the ChageLog entry, since it is part of the
previous patch.

Regtested on Cygwin_NT/PIV - OK for trunk and 4.1?

Paul

2006-04-21  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25099
	* resolve.c (resolve_call): Check conformity of elemental
	subroutine actual arguments.

2006-04-21  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/25099
	* gfortran.dg/elemental_subroutine_4.f90: New test.
	* gfortran.dg/assumed_size_refs_1.f90: Add error to non-conforming
	call sub (m, x).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: conform.diff
Type: application/octet-stream
Size: 6194 bytes
Desc: conform.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060421/0092a212/attachment.obj>


More information about the Fortran mailing list