This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, fortran] PR16940 - module interfaces to containedprocedures - redux++


Oh the joys of Windows!  Try again with pr16940.msg => pr16940.txt

Having studied the code at the end of parse.c, I have come to the conclusion that
the patch to fix pr16940 (http://gcc.gnu.org/ml/fortran/2005-07/msg00004.html) is
in the correct place. This is the first opportunity, after the contained function
has been parsed, that the namespaces is traversed and the symbols tested. In fact,
the ICE occurs precisely because this function subsequently does the wrong thing
with the offending, unrequited symbol.

The changelog entries, patch and testcase are enclosed.

Regtested (in so far as that is possible with gfc, these days) on Cygwin and RH9.

OK for mainline and 4.0?

Paul T

2005-07-01 Paul Thomas 

PR fortran/16940
* resolve.c (resolve_symbol): A symbol with FL_UNKNOWN
is matched against interfaces in parent namespaces. If there
the symtree is set to point to the interface.

Attachment: pr16940.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]