Fwd: [Patch, Fortran] PR 43199 - Handle class%component references when reading .mod files
Tobias Burnus
burnus@net-b.de
Sun Feb 28 21:19:00 GMT 2010
Dear Paul,
Paul Richard Thomas wrote:
> It is my intention to go through the OOP implementation routing out
> references to derived->components->.... in favour of using gfc_find_component
> (derived, "$data", true, true) just so as not to weld in and bolt down
> the representation of CLASS. Could you do so here, please?
>
Well, I somehow find it a bit clumsy as one has to convert a pointer to
a name, does string comparisons, goes back to a symbol; somehow
gfc_find_component sounds like the wrong tool for this special task of
fixing expressions after a module read. I will try to get something
working, but a first try with the approach below ends with the
Error: Derived type 's' at (1) is being used before it is defined
for the test case included in the previous patch / PR 43199.
Thus, I still prefer my previous patch which was approved by Janus on
#gfortran (unmodified version).
:-)
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: failed-try.diff
Type: text/x-patch
Size: 1400 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100228/03e2f741/attachment.bin>
More information about the Gcc-patches
mailing list