This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR29992 - failure to detect module procedures that are not procedures from modules
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Paul Thomas <paulthomas2 at wanadoo dot fr>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 17 Dec 2006 22:33:34 +0200
- Subject: Re: [Patch, fortran] PR29992 - failure to detect module procedures that are not procedures from modules
- References: <4583478A.5060703@wanadoo.fr>
On Saturday 16 December 2006 02:10, Paul Thomas wrote:
> This PR is simple enough in concept - gfortran fails to detect the
> invalid reference in module procedure declarations of procedures that
> are not contained by the interface scope or use associated. The only
> difficulty was detecting if a procedure had been declared a module
> procedure in a generic interface. The only way that I found to do this
> was to add a mod_proc attribute. The attr.proc == PROC_MODULE applies
> to all procedures in modules. Since the attribute is unique in its
> application to a module namespace, it is neither copied nor is it use
> associated.
>
> Regtested on Cygwin_NT/amd64 - OK for trunk and 4.2?
Paul,
thanks for fixing this! Although I can not comment on the code involved, it
bootstraps and regtests fine on i686-pc-linux-gnu (r119989).
Regards
Daniel