This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48706] Type extension inside subroutine
- 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: Wed, 18 May 2011 21:58:00 +0000
- Subject: [Bug fortran/48706] Type extension inside subroutine
- Auto-submitted: auto-generated
- References: <bug-48706-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48706
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011.05.18 21:49:33
Summary|[OOP] ICE (segfault) with |Type extension inside
|TBP |subroutine
Ever Confirmed|0 |1
--- Comment #1 from janus at gcc dot gnu.org 2011-05-18 21:49:33 UTC ---
Reduced (non-polymorphic) test case:
module mod_diff_01
implicit none
type :: foo
end type
contains
subroutine create_ext()
type, extends(foo) :: foo_e
end type foo_e
end subroutine create_ext
end module mod_diff_01
program diff_01
use mod_diff_01
implicit none
call create_ext()
end program diff_01
Apparently the segfault is simply due to the type extension happening inside a
subroutine (which is rather unusual but perfectly valid, I think).