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] |
Dear All, This is a very straight forward patch of a problem picked up by Mikael. Since module symbols host associated in the submodule statement are read using the use association mechanism, the can be wrongly detected as being ambiguous with use associated symbols. The latter have precedence, since the module is host. The fix attaches the host associated symbol to a 'unique symtree' and procedes to process the use associated symbol, using the existing symtree. Bootstraps and regtests on FC21/x86_64 - OK for trunk? Paul 2015-08-10 Paul Thomas <pault@gcc.gnu.org> PR fortran/66993 * module.c (read_module): If a symtree exists and the symbol has been associated in a submodule from a parent (sub)module, attach the symbol to a 'unique symtree' and the new symbol to the existing symtree. 2015-08-10 Paul Thomas <pault@gcc.gnu.org> PR fortran/66993 * gfortran.dg/submodule_11.f08: New test.
Attachment:
host_assoc.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |