]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Give consistent error message for invalid prefix in select component
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 20 Nov 2025 22:25:15 +0000 (23:25 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 9 Jan 2026 10:57:11 +0000 (11:57 +0100)
commit4b2e181b1f87ea186ca5d382b12a0fed53c94c64
tree13cb7cab1984d68c0bee2b2a1a865589cdb89f17
parent9813e49e95bc4bc2f0e030a7fdd0e7ef63c056fc
ada: Give consistent error message for invalid prefix in select component

This gives a consistent error message for an invalid prefix in all the cases
where the prefix has been found to be the name of an entity.

gcc/ada/ChangeLog:

* sem_ch4.adb (Analyze_Selected_Component): Give a specific error
message for an invalid prefix that is the dereference of a name.
* sem_ch8.adb (Find_Selected_Component): Give a consistent error
message for the name of an invalid prefix.
gcc/ada/sem_ch4.adb
gcc/ada/sem_ch8.adb