http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43289
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu.org
--- Comment #3 from Thomas Koenig <tkoenig at gcc dot gnu.org> 2011-12-11
09:04:58 UTC ---
Also invalid:
module foo
implicit none
real, volatile:: vol
contains
pure subroutine bar(a)
real, intent(out) :: a
a = vol
end subroutine bar
end module foo
F2008 has
"C1282 A designator of a variable with the VOLATILE attribute shall not
appear in a pure subprogram."