This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29699] ICE in trans-decl.c
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Nov 2006 22:03:22 -0000
- Subject: [Bug fortran/29699] ICE in trans-decl.c
- References: <bug-29699-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pault at gcc dot gnu dot org 2006-11-05 22:03 -------
We can move into different territory by referring to vocab_swap:
PROGRAM vocabulary_word_count
IMPLICIT NONE
TYPE VARYING_STRING
CHARACTER,DIMENSION(:),ALLOCATABLE :: chars
ENDTYPE VARYING_STRING
INTEGER :: list_size=200
CONTAINS
SUBROUTINE extend_lists
type(VARYING_STRING),DIMENSION(list_size) :: vocab_swap
allocate (vocab_swap(1)%chars(10))
ENDSUBROUTINE extend_lists
ENDPROGRAM vocabulary_word_count
bombs out, as follows:
pr29699.f90: In function 'extend_lists':
pr29699.f90:11: internal compiler error: tree check: expected record_type or
uni
on_type or qual_union_type, have pointer_type in find_compatible_field, at
tree.
c:7108
Please submit a full bug report,
So I would say that there are two bugs!
It is interesting to compare the code produced here with taht produced when
list_size is made a parameter. This appears to be the clue but it is a bit
opaque right now.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29699