This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30228] New: ICE: build_int_cst_wide, at tree.c:912 / invalid deallocate
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Dec 2006 23:33:19 -0000
- Subject: [Bug fortran/30228] New: ICE: build_int_cst_wide, at tree.c:912 / invalid deallocate
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
test.f90: In function 'MAIN__':
test.f90:8: internal compiler error: in build_int_cst_wide, at tree.c:912
NAG f95:
Error: test.f90, line 10: Invalid appearance of array element
sunf95:
ERROR: A deallocate object in a DEALLOCATE statement cannot be an array element
or section.
ifort:
Not a proper allocate-object for the DEALLOCATE statement
TYPE particle_type
INTEGER, POINTER :: p(:)
END TYPE particle_type
TYPE(particle_type), POINTER :: t(:)
integer :: i
i = 1
allocate(t(1))
allocate(t(1)%p(0))
deallocate(t(1)%p(0))
end
--
Summary: ICE: build_int_cst_wide, at tree.c:912 / invalid
deallocate
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30228