[Bug fortran/106047] ICE in structure_alloc_comps, at fortran/trans-array.cc:9574

anlauf at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jun 22 20:44:19 GMT 2022


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

More information about the Gcc-bugs mailing list