This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55959] [OOP] ICE in in gfc_simplify_expr, at fortran/expr.c:1920
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 13 Jan 2013 09:58:49 +0000
- Subject: [Bug fortran/55959] [OOP] ICE in in gfc_simplify_expr, at fortran/expr.c:1920
- Auto-submitted: auto-generated
- References: <bug-55959-4@http.gcc.gnu.org/bugzilla/>
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