[Patch, Fortran] PR fortran/45197: F2008: Allow IMPURE elemental procedures
Daniel Kraft
d@domob.eu
Thu Aug 5 19:35:00 GMT 2010
Hi,
the small patch attached implements the F2008 attribute IMPURE that may
be given to procedures; this may be used to get ELEMENTAL procedures
that are not also PURE (as is the default).
Instead of checking (attr.pure || attr.elemental) in gfc_pure, only
attr.pure is checked -- which seems also cleaner to me. Instead,
attr.pure is set if ELEMENTAL but not IMPURE was parsed.
No regressions on GNU/Linux-x86-32. Ok for trunk?
Daniel
--
http://www.pro-vegan.info/
--
Done: Arc-Bar-Cav-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.changelog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100805/165cf2a3/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100805/165cf2a3/attachment-0001.ksh>
More information about the Fortran
mailing list