[Patch, Fortran] SELECT TYPE via ASSOCIATE

Daniel Kraft d@domob.eu
Thu Aug 26 10:26: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?

As Dominique spotted a bug in this patch, here's an update which 
hopefully fixes the problem.  The only relative change is the new st.c 
update.

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/a62b8cf7/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100826/a62b8cf7/attachment-0001.ksh>


More information about the Fortran mailing list