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/55960] [OOP] ICE in replace_comp, at fortran/expr.c:4356


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

--- Comment #1 from janus at gcc dot gnu.org 2013-01-13 10:32:08 UTC ---
With this variant:

module pdfs
  type :: pdf
  end type pdf

  abstract interface
    pure function getdims(this)
      import pdf
      class(pdf), intent(in) :: this
      integer getdims
    end function getdims
  end interface

contains

  pure function getx(this)
    class(pdf), intent(in) :: this
    real, dimension(getdims(this)) :: getx
  end function getx

end module pdfs


I get the correct error message (unfortunately twice):

    real, dimension(getdims(this)) :: getx
                    1
Error: ABSTRACT INTERFACE 'getdims' must not be referenced at (1)


I'm not completely sure if the usage of 'getdims' is valid in comment 0.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]