This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]