This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] Handling of .and. and .or. expressions
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: graham stott <graham dot stott at btinternet dot com>
- Cc: Janus Weil <janus at gcc dot gnu dot org>, Janne Blomqvist <blomqvist dot janne at gmail dot com>, Thomas Koenig <tkoenig at netcologne dot de>, "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 16 Jun 2018 11:19:02 -0700
- Subject: Re: [patch, fortran] Handling of .and. and .or. expressions
- References: <c4mjko6x4q0v98xbdng4d4h8.1529171809305@email.android.com>
- Reply-to: sgk at troutmask dot apl dot washington dot edu
On Sat, Jun 16, 2018 at 06:56:49PM +0100, graham stott wrote:
> if i read this correctly it appears that IMPURE/PURE are not the normal
> pure attribute used by gcc but some entirely diff attribute specific to
> FORTAN so people are taking about different things
>
PURE and IMPURE are prefix-spec in Fortran. A Subprogram that
is marked as PURE must meet additional requirements. Those
requirements essentially eliminate the possibility of a function
having side effects. A subprogram marked as IMPURE can also
meet those additional requirements.
BTW, the name of the language is Fortran (not FORTRAN).
It's been Fortran for more than 27 years.
--
Steve