public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/42335]  New: [OOP] ICE on CLASS IS (bad_identifier)
@ 2009-12-08 21:46 anlauf at gmx dot de
  2009-12-09 18:03 ` [Bug fortran/42335] " janus at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: anlauf at gmx dot de @ 2009-12-08 21:46 UTC (permalink / raw)
  To: gcc-bugs

Hi,

the following (invalid) code gives an ICE:

module gfcbug95
  implicit none
  type, abstract :: vector_class
  end type vector_class

  type, extends(vector_class) :: trivial_vector_type
    real :: elements(100)
  end type trivial_vector_type
contains
  subroutine bar (this,v)
    class(trivial_vector_type), intent(inout) :: this
    class(vector_class),        intent(in)    :: v

    select type (v)
!   class is (trivial_vector_type) ! OK
    class is (bad_id)              ! ICE
       this%elements(:) = v%elements(:)
    end select
  end subroutine bar
end module gfcbug95

% gfc45 gfcbug95.f90
gfcbug95.f90:16.20:

    class is (bad_id)              ! ICE
                    1
Error: 'bad_id' at (1) is not an accessible derived type
f951: internal compiler error: Segmentation fault

Cheers,
-ha


-- 
           Summary: [OOP] ICE on CLASS IS (bad_identifier)
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de


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


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

end of thread, other threads:[~2009-12-22 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-08 21:46 [Bug fortran/42335] New: [OOP] ICE on CLASS IS (bad_identifier) anlauf at gmx dot de
2009-12-09 18:03 ` [Bug fortran/42335] " janus at gcc dot gnu dot org
2009-12-09 18:06 ` janus at gcc dot gnu dot org
2009-12-09 18:17 ` janus at gcc dot gnu dot org
2009-12-11 14:41 ` janus at gcc dot gnu dot org
2009-12-11 15:02 ` janus at gcc dot gnu dot org
2009-12-22 17:59 ` hjl dot tools at gmail dot com

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).