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/32760] Error defining subroutine named PRINT



------- Comment #12 from jvdelisle at gcc dot gnu dot org  2007-07-26 04:54 -------
This test case appears to execute correctly:

module gfcbug68
  implicit none
  public :: write

contains

  function foo (i)
    integer, intent(in)  :: i
    integer foo

    write (*,*) i
    foo = i
  end function foo

  subroutine write (m)
    integer, intent(in) :: m
    print *, m*m*m
  end subroutine write

end module gfcbug68

program testit
  use gfcbug68
  integer :: i = 27
  integer :: k

  k = foo(i)
  print *, "in the main:", k
  call write(33)
end program testit


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32760


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