[Bug fortran/43289] Missed constraint C1271a: Referrencing VOLATILE variable in PURE subprogram

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Dec 11 09:41:00 GMT 2011


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."



More information about the Gcc-bugs mailing list