When I compile the function listed below using the January 18 snapshot of
gfortran, I get the following error:

t.f90:2.2:

10 CONTINUE
 1
t.f90:3.7:

GOTO 10
      2
Error: Statement at (1) is not a valid branch target statement for the branch
statement at (2)

I believe it applies to all platforms.

CHARACTER FUNCTION t()
10 CONTINUE
GOTO 10
t = ' '
END FUNCTION t


-- 
           Summary: Spurious error in snapshot of 01/18/08: Statement at (1)
                    is not a valid branch target statement for the branch
                    statement at (2)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: michael dot a dot richmond at nasa dot gov


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

Reply via email to