This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43289] Missed constraint C1271a: Referrencing VOLATILE variable in PURE subprogram
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 11 Dec 2011 09:04:58 +0000
- Subject: [Bug fortran/43289] Missed constraint C1271a: Referrencing VOLATILE variable in PURE subprogram
- Auto-submitted: auto-generated
- References: <bug-43289-4@http.gcc.gnu.org/bugzilla/>
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."