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

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

commit r16-4699-g20ad15cfebe0eb571b02956f0628a78c3161184c
Author: Eric Botcazou <[email protected]>
Date:   Tue Oct 28 23:04:49 2025 +0100

    Ada: Fix visibility issue for child unit declared as instance on homonym

    The reproducer is made up of 9 units containing multiple level of nested
    instances, but in the end the problem is that the final child unit has
    the same name as the parameter in its instantiation, exposing the wrong
    manipulation of the homonym chain done in Analyze_Subprogram_Instantiation.

    The fix is to replace this manipulation with a call to Remove_Homonym.

    gcc/ada/
            PR ada/48039
            * sem_ch12.adb (Analyze_Subprogram_Instantiation): Call
            Remove_Homonym to remove the enclosing package from visibility.
  • [Bug ada/48039] visibility issu... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to