[Patch, fortran] PR32634 - renamed, use associated generic interface rejected

Paul Richard Thomas paul.richard.thomas@gmail.com
Fri Jul 6 11:46:00 GMT 2007


:ADDPATCH fortran:

This PR is best explained by the testcase, which is the reporter's
original.  The call to 'foo_pwrk' failed but a call to the original
name, 'bar_pwrk'.  The reason for this turned out to be almost
unbelievable simple; the wrong name was written to foo_pr_mod.mod.

This fix is correspondingly simple - lift the code that is used
elsewhere in module.c to scan for local names for the interface and to
write these to the module.

Regtested on Cygwin_NT - OK for trunk?

Paul

2007-07-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/32634
	* module.c (write_generic): Write the local name of the
	interface.

2007-07-06  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/32634
	* gfortran.dg/interface_15.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr32634.diff
Type: application/octet-stream
Size: 4940 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070706/9a229ec0/attachment.obj>


More information about the Gcc-patches mailing list