https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106047
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2022-06-22 Ever confirmed|0 |1 CC| |anlauf at gcc dot gnu.org --- Comment #1 from anlauf at gcc dot gnu.org --- ICE confirmed. But it is really invalid? Intel & NAG accept it. Part of the problem is gfc_element_size. It calculates a number that is 8 for -m64, and 4 for -m32, likely sizeof (gfc_charlen_t), instead of noticing that we have a descriptor for deferred length character. (OTOH using character, allocatable :: c(:) seems to work, so maybe the real issue is in gfc_typenode_for_spec).