[Patch, Fortran] PR fortran/45197: F2008: Allow IMPURE elemental procedures
Daniel Kraft
d@domob.eu
Sat Aug 14 19:11:00 GMT 2010
Hi again,
the attached patch incorporates Tobias' comments.
No regressions on GNU/Linux-x86-32. Ok?
Daniel
Daniel Kraft wrote:
> 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/20100814/1a3613f8/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100814/1a3613f8/attachment-0001.ksh>
More information about the Fortran
mailing list