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

--- Comment #5 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:d3de77f7da340a1be8d43d284226a89d877ddfbd

commit r15-11737-gd3de77f7da340a1be8d43d284226a89d877ddfbd
Author: Eric Botcazou <[email protected]>
Date:   Sun Nov 15 18:01:41 2026 +0100

    Ada: Fix wrong resolution for iterated expression of aggregate in instance

    This is a regression present on the mainline, 16 and 15 branches: the
global
    names present in the expression of an iterated component association inside
    an aggregate are incorrectly resolved in instances of a generic unit.

    gcc/ada/
            PR ada/128723
            * sem_aggr.adb (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
            Preanalyze the expression directly inside a generic unit.
            (Resolve_Delta_Array_Aggregate): Likewise.

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

Reply via email to