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

--- Comment #3 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:70c447d9a91efa886fd85de7a2a9b2c3d90585c4

commit r17-6295-g70c447d9a91efa886fd85de7a2a9b2c3d90585c4
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