[Patch, Fortran] PR54389 - DECL_PURE_P: set for implicit_pure but not for impure elemental
Tobias Burnus
burnus@net-b.de
Tue Aug 28 08:52:00 GMT 2012
DECL_PURE_P was also set for elemental procedures, which is wrong if
they are IMPURE.
Additionally, we do the same checks for PURE also for
attr.implicit_pure. I think the checks are strict enough that we can
dare to set DECL_PURE_P also for gfortran's attr.implicit_pure
procedures. What do you think?
Build on x86-64-linux. (I will also regtest it.)
OK for the trunk?
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pure-fix.diff
Type: text/x-patch
Size: 1256 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120828/386a5352/attachment.bin>
More information about the Gcc-patches
mailing list