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

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

https://gcc.gnu.org/g:9c390b702d3a1dada30f04f75c14dee88a3f7da5

commit r13-9930-g9c390b702d3a1dada30f04f75c14dee88a3f7da5
Author: Eric Botcazou <[email protected]>
Date:   Mon Oct 20 11:21:21 2025 +0200

    Ada: Fix spurious warning for renaming of component of VFA record

    This is a regression present on the mainline and all active branches: the
    compiler gives a spurious "is not referenced" warning for the renaming of
    a component of a Volatile_Full_Access record.

    gcc/ada/
            PR ada/107536
            * exp_ch2.adb (Expand_Renaming): Mark the entity as referenced.

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

Reply via email to