This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41587] [OOP] ICE with ALLOCATABLE CLASS components
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Feb 2012 23:37:09 +0000
- Subject: [Bug fortran/41587] [OOP] ICE with ALLOCATABLE CLASS components
- Auto-submitted: auto-generated
- References: <bug-41587-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41587
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Last reconfirmed| |2012-02-02
CC| |mikael at gcc dot gnu.org
Resolution|FIXED |
Ever Confirmed|0 |1
--- Comment #5 from Mikael Morin <mikael at gcc dot gnu.org> 2012-02-02 23:37:09 UTC ---
(In reply to comment #1)
> I don't get an ICE with the coed in comment#0. However I get one with the
> following (valid?) changes:
>
> type t0
> integer :: j = 42
> end type t0
> type t
> integer :: i
> class(t0), allocatable :: foo(:)
> end type t
> type(t) :: k
> allocate(t0 :: k%foo(3))
> print *, k%foo%j
> end
>
> pr41587_db.f90: In function 'MAIN__':
> pr41587_db.f90:9:0: internal compiler error: in gfc_conv_descriptor_data_get,
> at fortran/trans-array.c:147
>
The ICE is gone, but the program above prints 0 0 42 instead of 42 42 42.
Reopening...