This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43169] [OOP] gfortran rejects pure procedure with select type construct
- From: "janus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2010 12:47:12 -0000
- Subject: [Bug fortran/43169] [OOP] gfortran rejects pure procedure with select type construct
- References: <bug-43169-11768@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from janus at gcc dot gnu dot org 2010-03-01 12:47 -------
Even with the patch from comment #7, another thing goes wrong with BLOCK
statements:
pure subroutine swap
implicit none
real :: r1
block
real :: r2
r1 = 42.
r2 = 43.
end block
end subroutine
r1 = 42.
1
Error: Cannot assign to variable 'r1' in PURE procedure at (1)
This is rejected although it is valid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43169