[Patch, fortran] PR24866 - ICE on external dummy in module procedure
Paul Thomas
paulthomas2@wanadoo.fr
Sun Aug 20 07:43:00 GMT 2006
:ADDPATCH fortran:
If an external dummy procedure in a module procedure has a doppelganger
module procedure, with the same name, an ICE can ensue, depending on the
ordering of the module procedures. This comes about because parse.c
(gfc_fixup_sibling_symbols) tries to redirect the symtree reference for
the dummy to the host associated symbol for the doppelganger. The fix
is easy, as will be seen from the patch. The testsuite case is a
developed version of the contributors example.
Regtested on SUSE10.1/AMD64 - OK for trunk and 4.1?
Paul
2006-08-19 Paul Thomas <pault@gcc.gnu.org>
PR fortran/24866
* parse.c (gfc_fixup_sibling_symbols): Do not modify the symbol
if it is a dummy in the contained namespace.
2006-08-19 Paul Thomas <pault@gcc.gnu.org>
PR fortran/24866
* gfortran.dg/module_proc_external_dummy.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr24866.diff
Type: text/x-patch
Size: 1919 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060820/d3c6611f/attachment.bin>
More information about the Fortran
mailing list