http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46411
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-11-10 17:55:14 UTC --- Fixed on the trunk. I was asked in #gfortran to backport it to 4.5. I thus leave it open. The backport probably requires that non-IMPURE variables are marked as attr.pure (cf. comment 1). On 4.5 CLASS_IMPURE ('impure' is F2008) was called CLASS_NONE. This patch is http://gcc.gnu.org/ml/fortran/2010-11/msg00196.html the comment 1 patch is part of http://gcc.gnu.org/ml/fortran/2010-11/msg00186.html