[Patch, fortran] PR29992 - failure to detect module procedures that are not procedures from modules
Paul Thomas
paulthomas2@wanadoo.fr
Sat Dec 16 01:12:00 GMT 2006
:ADDPATCH fortran:
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.
The patch that was posted to the PR is too restrictive - it does not
allow use associated procedures; so please ignore it.
Regtested on Cygwin_NT/amd64 - OK for trunk and 4.2?
Paul
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Change.Logs
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061216/4df62f2b/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr29992.diff
Type: text/x-patch
Size: 3830 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20061216/4df62f2b/attachment.bin>
More information about the Fortran
mailing list