[Bug ada/121316] iterator filter ignored on enumeration type with representation clause
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 1 19:40:01 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121316
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-15 branch has been updated by Eric Botcazou
<ebotcazou@gcc.gnu.org>:
https://gcc.gnu.org/g:8a9f2bd7abb21d12df688bf250e1f30491adbb1f
commit r15-10760-g8a9f2bd7abb21d12df688bf250e1f30491adbb1f
Author: Eric Botcazou <ebotcazou@adacore.com>
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 <liam@liampwll.com>
More information about the Gcc-bugs
mailing list