public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/46413] New: [OOP] ICE when printing a polymorphic type
@ 2010-11-10 13:53 burnus at gcc dot gnu.org
  2010-11-11  9:16 ` [Bug fortran/46413] " burnus at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: burnus at gcc dot gnu.org @ 2010-11-10 13:53 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [OOP] ICE when printing a polymorphic type
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: janus@gcc.gnu.org


The following invalid program gives an ICE:
test.f90:7:0: internal compiler error: Bad IO basetype (7)


type t
  integer :: ii =5
end type t
class(t), allocatable :: x
allocate (t :: x)

print *,x  ! PRINT of polymorphic type.
end


ifort prints:
test.f90(7): error #8303: A list item shall not be polymorphic unless it is
processed by a user-defined derived-type input/output procedure.   [X]

"9.6.3 Data transfer input/output list"
"A list item shall not be polymorphic unless it is processed by a de\fned
input/output procedure (9.6.4.8)."


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-11 23:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-10 13:53 [Bug fortran/46413] New: [OOP] ICE when printing a polymorphic type burnus at gcc dot gnu.org
2010-11-11  9:16 ` [Bug fortran/46413] " burnus at gcc dot gnu.org
2010-11-11 23:07 ` burnus at gcc dot gnu.org
2010-11-11 23:09 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).