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/43169] [OOP] gfortran rejects pure procedure with select type construct



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


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