https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121316

--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <[email protected]>:

https://gcc.gnu.org/g:34217930444e0a7098cf7374bad0d5c41819c130

commit r16-7234-g34217930444e0a7098cf7374bad0d5c41819c130
Author: Eric Botcazou <[email protected]>
Date:   Sun Feb 1 20:18:41 2026 +0100

    Ada: Fix iterator filter ignored on enumeration type with clause

    The problem comes from an oversight in Expand_N_Loop_Statement.

    gcc/ada/
            PR ada/121316
            * exp_ch5.adb (Expand_Iterator_Loop_Over_Array): Minor tweak.
            (Expand_Iterator_Loop_Over_Container): Likewise.
            (Expand_N_Loop_Statement): Use Statements (N) throughout.

    gcc/testsuite/
            * gnat.dg/iter7.adb: New test.

    Co-authored-by: Liam Powell <[email protected]>

Reply via email to