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/27613] compile fails with "Unclassifiable statement" error message



------- Comment #2 from paul dot richard dot thomas at cea dot fr  2006-05-15 06:42 -------
A temporary workaround is:

program test
  integer :: stuff

  write(*, *) "called stuff ", stuff(1), " times"

end program test

recursive function stuff(n) result (tmp)
  integer :: tmp
  integer :: n

  tmp = 1
  if(n < 5) then
    tmp = tmp+stuff(n+1)
  endif

end function stuff


-- 


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


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