[patch, fortran] PR46331 Compilation time long with simple function in array constructor
Tobias Burnus
burnus@net-b.de
Mon Nov 8 12:52:00 GMT 2010
On 11/08/2010 01:13 PM, Mikael Morin wrote:
> PS: Is it expected that the and/or/xor procedures are marked as CLASS_IMPURE
The CLASS_* names come from the Fortran standard (where the term
"impure" is a F2008 addition). Well, looking at the standard you find:
13.7.10 ALL (MASK [, DIM])
Class. Transformational function.
The procedures "OR" and "XOR" are GNU extensions; the manual does not
tell which kind of functions they are, but the standard Fortran "IOR"
and "IEOR", which are the Fortran-standard replacements, are "elemental
functions". If one changes OR and XOR to elemental, one also needs to
update the documentation, cf.
http://gcc.gnu.org/onlinedocs/gfortran/OR.html and
http://gcc.gnu.org/onlinedocs/gfortran/XOR.html
Tobias
More information about the Fortran
mailing list