]> git.ipfire.org Git - thirdparty/gcc.git/commit
Ada: Fix spurious warning for renaming of component of VFA record
authorEric Botcazou <ebotcazou@adacore.com>
Mon, 20 Oct 2025 09:21:21 +0000 (11:21 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Mon, 20 Oct 2025 09:23:54 +0000 (11:23 +0200)
commit200b826af41d0dc05d2df1d67eea521d1d83265a
treea1f52181914c57e02a2efd1938a95cf3615b2023
parentef8b3b979b6117eba9b39a7174f89b7297e8a1cd
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.
gcc/ada/exp_ch2.adb
gcc/testsuite/gnat.dg/renaming18.adb [new file with mode: 0644]