[Bug ada/107536] [13/14/15/16 regression] Wrong 'not referenced' warning on renamed variable
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 20 09:51:17 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107536
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Eric Botcazou
<ebotcazou@gcc.gnu.org>:
https://gcc.gnu.org/g:2f651d20c1b3c6a14f77570b68b988a6e101f579
commit r14-12107-g2f651d20c1b3c6a14f77570b68b988a6e101f579
Author: Eric Botcazou <ebotcazou@adacore.com>
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.
More information about the Gcc-bugs
mailing list