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/55959] [OOP] ICE in in gfc_simplify_expr, at fortran/expr.c:1920


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

--- Comment #1 from janus at gcc dot gnu.org 2013-01-13 09:58:49 UTC ---
Reduced test case:

module pdfs
  type :: pdf
  contains
    procedure, nopass :: getx
  end type pdf

contains

  real function getx()
  end function

end module pdfs

program abstract
  use pdfs
  type(pdf) pp
  print pp%getx()
end program


When changing the print line into

  print getx()

the ICE turns into the correct error message:

  print getx()
       1
Error: FORMAT tag at (1) must be of type default-kind CHARACTER or of INTEGER


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