public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libfortran/44064]  New: ICE with file containing two modules and one program
@ 2010-05-10 17:12 pchwood at yahoo dot com
  2010-05-10 17:19 ` [Bug libfortran/44064] " dominiq at lps dot ens dot fr
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: pchwood at yahoo dot com @ 2010-05-10 17:12 UTC (permalink / raw)
  To: gcc-bugs

The following testcase segfaults in 4.6:

module module_myclass

    implicit none

    type :: inner
    contains
        procedure :: set
    end type inner

    type :: myclass
        type(inner) :: slice
    end type myclass

contains

    subroutine set(this)
        class(inner), intent(inout) :: this
    end subroutine set

end module module_myclass

module module_mysubclass

    use module_myclass, only : myclass
    implicit none

    type, extends(myclass) :: mysubclass
    contains
        procedure :: init
    end type mysubclass

contains

    subroutine init(this)
        class(mysubclass), intent(inout) :: this
        call this%slice%set() ! XXX PROBLEM HERE this%slice not resolved
    end subroutine init

end module module_mysubclass

program test

    use module_mysubclass, only : mysubclass
    implicit none

    class(mysubclass), allocatable :: obs

end program test


-- 
           Summary: ICE with file containing two modules and one program
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libfortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pchwood at yahoo dot com


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


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

end of thread, other threads:[~2010-08-05 21:09 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-10 17:12 [Bug libfortran/44064] New: ICE with file containing two modules and one program pchwood at yahoo dot com
2010-05-10 17:19 ` [Bug libfortran/44064] " dominiq at lps dot ens dot fr
2010-05-10 17:22 ` dominiq at lps dot ens dot fr
2010-05-10 22:00 ` [Bug fortran/44064] [OOP] " janus at gcc dot gnu dot org
2010-05-11  7:24 ` burnus at gcc dot gnu dot org
2010-05-15 20:02 ` janus at gcc dot gnu dot org
2010-05-17 21:03 ` janus at gcc dot gnu dot org
2010-07-29 11:23 ` mikael at gcc dot gnu dot org
2010-07-29 11:55 ` mikael at gcc dot gnu dot org
2010-07-31 10:28 ` mikael at gcc dot gnu dot org
2010-08-02 15:31 ` mikael at gcc dot gnu dot org
2010-08-04 12:17 ` janus at gcc dot gnu dot org
2010-08-04 14:18 ` mikael at gcc dot gnu dot org
2010-08-04 19:49 ` janus at gcc dot gnu dot org
2010-08-04 19:57 ` janus at gcc dot gnu dot org
2010-08-05 21:09 ` mikael at gcc dot gnu dot 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).