[RFC, fortran] Output contained namespaces in module (PR fortran/16861)
Paul Thomas
paulthomas2@wanadoo.fr
Sun Jul 17 16:51:00 GMT 2005
David,
In the course of diagnosing a couple of other module bugs, I added
pr16861 to the list of tests.
To my enormous surprise, I find that my patch for pr16940 (
http://gcc.gnu.org/ml/fortran/2005-07/msg00004.html ) fixes pr16861
too. I was so surprised that I have rebuilt gcc with and without the
patch, just to make sure. This convinces me of the suspicion that
read_module is the place to be stalking this one.
This fix detects symbols that have the same name as an interface, in a
parent namespace, and deletes them, whilst connecting the symtree up to
the correct symbol, in the parent namespace. I am trying, at the
moment, to find why these bad symbols are there in the first place and
to produce a better fix.
I have attached an improved version of the original patch.
Paul T
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: resolve.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20050717/aee618c4/attachment.ksh>
More information about the Fortran
mailing list