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

--- Comment #10 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:0d1d42f7e35c3a6499533842adb344251630ba73

commit r16-7813-g0d1d42f7e35c3a6499533842adb344251630ba73
Author: Eric Botcazou <[email protected]>
Date:   Fri Feb 27 21:41:38 2026 +0100

    Ada: Fix bogus visibility error for expression of iterated association

    This completes the transition of the Resolve_Iterated_Association procedure
    to the preanalysis of the original nodes for the sake of instantiations.

    gcc/ada/
            PR ada/124201
            PR ada/124282
            * exp_aggr.adb (Expand_Iterated_Component): Replace the iteration
            variable in the expression as well.
            * sem_aggr.adb (Resolve_Iterated_Component_Association): Preanalyze
            the expression directly as well.

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

Reply via email to