[Bug ada/121316] representation clause on enumeration type causes iterator filters to be ignored
ebotcazou at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jan 31 16:00:35 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121316
--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> It should be noted that Expand_Iterator_Loop_Over_Array and
> Expand_Iterator_Loop_Over_Container both make Stats mutable and replace it
> with the output of New_List. I can't figure out if there's a reason why
> Expand_N_Loop_Statement used a different approach so I just went with
> minimal changes here instead of copying them.
Expand_N_Loop_Statement does nothing with Stats in the default case, unlike the
two others. I agree that the minimal change is the way to go here.
More information about the Gcc-bugs
mailing list