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

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

https://gcc.gnu.org/g:37de59a905e4deaf22b16e24978120feb761493f

commit r15-10855-g37de59a905e4deaf22b16e24978120feb761493f
Author: Eric Botcazou <[email protected]>
Date:   Tue Feb 24 17:42:24 2026 +0100

    Ada: Fix crash on iterated element association for Ordered_Maps

    This is a regression present on the mainline and 15 branch: the compiler
    crashes on an iterated element association for Ordered_Maps or similar
    container types, because the type of the loop variable is not computed.

    gcc/ada/
            PR ada/124224
            * sem_aggr.adb (Resolve_Container_Aggregate): Minor tweaks.
            (Resolve_Iterated_Association): Compute Typ on all paths.

    gcc/testsuite/
            * gnat.dg/specs/aggr12.ads: New test.

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

Reply via email to