https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98255
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.org --- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Yeah, exactly that change I had in mind too. The question is what it will mean to Ada. In any case, from the get_inner_reference code I assume that either low_bound is zero and then index can have any type which is then cast to sizetype before using further, or low_bound is variable or non-zero constant and in that case the FE needs to ensure the indexes have type compatible with the type of the low bound.