[Bug ada/102450] GCC error: in set_min_and_max_values_for_integral_type, at stor-layout.c:2851
rearnsha at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 24 15:29:20 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102450
--- Comment #7 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
(In reply to Richard Earnshaw from comment #6)
> So I think we need a way of checking that this won't fail before we call it.
>
> Any idea?
>
> tree type = lang_hooks.types.type_for_size (ilen * 8, 1);
Or alternatively, perhaps this should just return NULL if there is no such
type, we already test for that. In which case this is a bug in the Ada
type_for_size routine.
More information about the Gcc-bugs
mailing list