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


The following code fails to compile with the error message:

 In file test.f90:14

    stuff = stuff+stuff(n+1)
   1
Error: Unclassifiable statement at (1)

The program test.f90:

program test
  integer :: stuff

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

end program test

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

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

end function stuff


-- 
           Summary: compile fails with "Unclassifiable statement" error
                    message
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nicolasbock at gmail dot com
 GCC build triplet: powerpc-apple-darwin8.6.0
  GCC host triplet: powerpc-apple-darwin8.6.0
GCC target triplet: powerpc-apple-darwin8.6.0


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]