[Patch, fortran] PR37445 - Host-associated proc not found if same-name generic is use-associated

Paul Richard Thomas paul.richard.thomas@gmail.com
Wed Sep 24 18:50:00 GMT 2008


This patch is straight forward and corrects two problems: one in
resolve_call that meant that contained subroutines would be ignored,
depending on the order of compilation of module contained procedures.
The second was a similar problem with functions.

Bootstraps and regtests on x86_ia64 - OK for trunk and 4.3?

Paul

2008-09-24  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/37445
	* resolve.c (resolve_actual_arglist ): Correct comparison of
	FL_VARIABLE with e->expr_type.
	(resolve_call): Check that host association is correct.
	(resolve_actual_arglist ): Remove return is old_sym is use
	associated.  Only reparse expression if old and new symbols
	have different types.

2008-09-24  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/37445
	* gfortran.dg/host_assoc_call_3.f90: New test.
	* gfortran.dg/host_assoc_function_4.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit37445.diff
Type: text/x-patch
Size: 4553 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080924/9ea2a26c/attachment.bin>


More information about the Gcc-patches mailing list