[Patch, Fortran] SELECT TYPE via ASSOCIATE
Daniel Kraft
d@domob.eu
Thu Aug 26 12:46:00 GMT 2010
Daniel Kraft wrote:
> Hi,
>
> the attached patch fixes ASSOCIATE for polymorphic values and switches
> the current implementation of SELECT TYPE to using ASSOCIATE internally.
> As a side-effect, this fixes the "double-free" PRs 44047 and 45384. I
> also think that the still missing piece (comment #3) of PR 44044 will be
> fixed when the testing for variable definition contexts in ASSOCIATE is
> extended (but so far the problem is still not detected).
>
> Regtested on GNU/Linux-x86-32. The only failure was bessel_7.f90, which
> goes away when I increase the tolerance according to
> http://gcc.gnu.org/ml/fortran/2010-08/msg00308.html. Ok for trunk?
...and another update which seems to fix the problems finally. This
removes the symbol.c change, as the free can seemingly not be done
safely. It would only have been useful for invalid code and in special
cases anyway, as association entries should usually not be "dangling".
Daniel
--
http://www.pro-vegan.info/
--
Done: Arc-Bar-Cav-Kni-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Mon-Pri
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.changelog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100826/a2624811/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100826/a2624811/attachment-0001.ksh>
More information about the Fortran
mailing list