This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27613] compile fails with "Unclassifiable statement" error message
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 May 2006 06:42:19 -0000
- Subject: [Bug fortran/27613] compile fails with "Unclassifiable statement" error message
- References: <bug-27613-12687@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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