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]

Re: [Patch, fortran] PR33541 - gfortran wrongly imports renamed-use-associated symbol unrenamed


Paul Richard Thomas wrote:

I find this part of the standard to be quite obscure
and much prefer the description of the DEC Fortran manual:

<< If more than one USE statement for a given module appears in a
scoping unit, the following rules apply:

If one USE statement does not have the ONLY option, all public
entities in the module are accessible, and any rename- lists and
only-lists are interpreted as a single, concatenated rename-list.

If all the USE statements have ONLY options, all the only-lists are
interpreted as a single, concatenated only-list. Only those entities
named in one or more of the only-lists are accessible. >>

Well, then perhaps we (J3) should add that (or something similar) as a note.


Kind regards,

--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.indiv.nluug.nl/~toon/
GNU Fortran's path to Fortran 2003: http://gcc.gnu.org/wiki/Fortran2003


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