------- 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