This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29490] internal compiler error: in fold_binary, at fold-const.c:8239
- 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: 17 Oct 2006 20:20:17 -0000
- Subject: [Bug fortran/29490] internal compiler error: in fold_binary, at fold-const.c:8239
- References: <bug-29490-13399@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-10-17 20:20 -------
Thank you, Richard - thanks to your splendid analysis, I was able to go
straight to the source of the problem:
trans-types.c(gfc_get_nodesc_array_type):1038 sets GFC_TYPE_ARRAY_LBOUND to
NULL_TREE if the arrayspec lower is not constant. It then feeds through to the
interfacery that cannot cope with this and the ICE ensues. There is no reason
why GFC_TYPE_ARRAY_LBOUND cannot be set; being fortran, gfc_index_one_node is
an OK choice, although zero does OK too. This is regtesting as I write. If
all is well, I will submit before going to bed.
Many thanks!
Paul
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2006-10-17 14:09:01 |2006-10-17 20:20:17
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29490