public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48706] New: [OOP] ICE (segfault) with TBP
@ 2011-04-20 19:40 burnus at gcc dot gnu.org
  2011-05-18 22:01 ` [Bug fortran/48706] Type extension inside subroutine janus at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-04-20 19:40 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [OOP] ICE (segfault) with TBP
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org
                CC: janus@gcc.gnu.org


The following program (tbp_diffscope_01_pos.f90) fails with an ICE (segfault)

The test case is part of LRZ's fortran_tests.


module mod_diff_01
  implicit none
  type :: foo
     integer :: i = -1
  contains
     procedure :: pfoo
  end type
contains
  subroutine pfoo(this, i)
    class(foo) :: this
    integer :: i
    this%i = i
    select type(this)
    type is (foo)
       write(*, *) 'FAIL'
    class default
       write(*, *) 'OK'
    end select
  end subroutine pfoo
  subroutine create_ext(this)
    type, extends(foo) :: foo_e
       real :: r = 0.0
    end type foo_e
    class(foo), allocatable :: this
    allocate(foo_e :: this)
    call this%pfoo(1)
! ifort 11.1U6 crash at TBP call (premier issue 590191)
  end subroutine create_ext
end module mod_diff_01
program diff_01
  use mod_diff_01
  implicit none
  class(foo), allocatable :: o
  call create_ext(o)
end program diff_01


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

end of thread, other threads:[~2011-10-04 20:46 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-20 19:40 [Bug fortran/48706] New: [OOP] ICE (segfault) with TBP burnus at gcc dot gnu.org
2011-05-18 22:01 ` [Bug fortran/48706] Type extension inside subroutine janus at gcc dot gnu.org
2011-05-18 22:07 ` janus at gcc dot gnu.org
2011-05-18 23:07 ` janus at gcc dot gnu.org
2011-05-20  9:23 ` janus at gcc dot gnu.org
2011-05-20  9:53 ` burnus at gcc dot gnu.org
2011-05-20 18:36 ` janus at gcc dot gnu.org
2011-05-20 18:46 ` janus at gcc dot gnu.org
2011-10-04 11:07 ` jakub at gcc dot gnu.org
2011-10-04 20:44 ` janus at gcc dot gnu.org
2011-10-04 20:46 ` janus 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).