[Bug fortran/28526] New: 'end' is recognized as a variable incorrectly

iguchi at coral dot t dot u-tokyo dot ac dot jp gcc-bugzilla@gcc.gnu.org
Fri Jul 28 12:19:00 GMT 2006


In compiling the following program, I have got a error message.
I think it is a wrong behavior.

$ gfortran -v
Using built-in specs.
Target: powerpc-apple-darwin7.9.0
Configured with: ../gcc/configure --prefix=/usr/local/gfortran
--enable-languages=c,fortran --with-gmp=/tmp/gfortran-20060512/gfortran_libs
--enable-bootstrap
Thread model: posix
gcc version 4.2.0 20060512 (experimental)
$ cat end.f90
module m
  public end

  interface foo
    module procedure foo1
  end interface

  interface end
    module procedure foo2
  end interface

contains
  subroutine foo1
  end subroutine

  subroutine foo2
  end subroutine
end module
end program
$ gfortran end.f90
 In file end.f90:8

  interface end
              1
Error: VARIABLE attribute conflicts with PROCEDURE attribute at (1)
 In file end.f90:9

    module procedure foo2
                    1
Error: MODULE PROCEDURE at (1) must be in a generic module interface
 In file end.f90:10

  end interface
    1
Error: Expecting END MODULE statement at (1)


-- 
           Summary: 'end' is recognized as a variable incorrectly
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: iguchi at coral dot t dot u-tokyo dot ac dot jp


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



More information about the Gcc-bugs mailing list