This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/19929] New: Deallocation of an allocated derived type component causes failure
- From: "sgk at troutmask dot apl dot washington dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Feb 2005 16:34:10 -0000
- Subject: [Bug fortran/19929] New: Deallocation of an allocated derived type component causes failure
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
>From Richard Maine, editor of the F2003 standard
subroutine close_th_read_unc3
type :: unc3_ptr_type
integer, pointer :: unc3
end type
type(unc3_ptr_type) :: unc3_ptrs(10)
allocate(unc3_ptrs(2)%unc3)
deallocate(unc3_ptrs(2)%unc3)
end subroutine close_th_read_unc3
bug5.f90: In function 'close_th_read_unc3':
bug5.f90:6: internal compiler error: in gfc_conv_descriptor_data, at
fortran/trans-array.c:181
Interestingly, the allocate is fine; only the deallocate crumps.
--
Summary: Deallocation of an allocated derived type component
causes failure
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sgk at troutmask dot apl dot washington dot edu
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19929