[Bug fortran/60952] Problem using "end" as a type bound procedure and contained procedures

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 25 11:40:00 GMT 2014


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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-04-25
                 CC|                            |janus at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from janus at gcc dot gnu.org ---
Confirmed (also with 4.4, 4.6 and 4.8).

Slightly reduced test case:

module A_mod
  implicit none

  type A
  contains
    procedure, nopass :: end
  end type

contains

  subroutine swap
  contains
    subroutine subSwap
    end subroutine
  end subroutine

  integer function end()
  end function

end module


Fails with:

  integer function end()
                      1
Error: VARIABLE attribute of 'end' conflicts with PROCEDURE attribute at (1)



More information about the Gcc-bugs mailing list