This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: constant slices or string arrays patch
> I think you need to fold_convert offset and lower_bound to sizetype.
> I don't think there is any particular guarantee that they have that
> type, or that they have the same type. In particular the lower bound
> will typically have type TYPE_DOMAIN (array_type), which in Ada can
> probably be any random type.
Lower_bound is, I think, indeed not sizetype, but offset I'm pretty sure is.