This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30228] ICE: build_int_cst_wide, at tree.c:912 / invalid deallocate
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Dec 2006 20:34:03 -0000
- Subject: [Bug fortran/30228] ICE: build_int_cst_wide, at tree.c:912 / invalid deallocate
- References: <bug-30228-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from tobi at gcc dot gnu dot org 2006-12-17 20:34 -------
I couldn't reproduce this, and Tobias Burnus thinks it coudl be an issue in his
tree.
tobias-schluters-computer:~/src/pr/30228 tobi$ cat t.f90
type pt
integer, pointer :: p(:)
end type pt
type(pt), pointer :: t(:)
integer i
i = 1
allocate (t(1))
allocate (t(1)%p(0))
deallocate(t(1)%p(0))
end
tobias-schluters-computer:~/src/pr/30228 tobi$ ~/src/trunk2/build/gcc/f951
t.f90
t.f90:9.12:
deallocate(t(1)%p(0))
1
Error: Expression in DEALLOCATE statement at (1) must be ALLOCATABLE or a
POINTER
Execution times (seconds)
parser : 0.01 (100%) usr 0.00 ( 0%) sys 0.00 ( 0%) wall
111 kB (14%) ggc
TOTAL : 0.01 0.01 0.01
822 kB
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --disable-checking to disable checks.
tobias-schluters-computer:~/src/pr/30228 tobi$
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tobi at gcc dot gnu dot org
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30228