This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28167] ICE: in fold_binary, at fold-const.c:8239 (temporary character array?)
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2006 08:24:32 -0000
- Subject: [Bug fortran/28167] ICE: in fold_binary, at fold-const.c:8239 (temporary character array?)
- References: <bug-28167-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2006-06-26 08:24 -------
Confirmed. We end up in gfc_trans_create_temp_array
size = fold_build2 (MULT_EXPR, gfc_array_index_type, size,
TYPE_SIZE_UNIT (gfc_get_element_type (type)));
with type being a record type 'struct array1_unknown', so TYPE_SIZE_UNIT
(gfc_get_element_type (type)) returns zero. gfc_get_element_type (type)
returns charD.14[1:] (!??), so maybe the fix is to use TYPE_SIZE_UNIT
(TREE_TYPE (... ))) here. (This doesn't fix it, we also pass size == 0 to the
MULT_EXPR,
so we'll end up with a size of zero here)
So maybe the bug is that size and nelem are both zero... who knows ;)
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code
Last reconfirmed|0000-00-00 00:00:00 |2006-06-26 08:24:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28167