]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Tweak condition for name resolution failure
authorRonan Desplanques <desplanques@adacore.com>
Fri, 21 Feb 2025 16:32:35 +0000 (17:32 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Fri, 6 Jun 2025 08:37:08 +0000 (10:37 +0200)
commit8727813200bf75c0f1ad22edd49c271a92831882
tree471b43fdec8eb3512ac9f2d1f8507dcf7cf05f4e
parentf6d20900a2f358b007cfd47636bfb696aeab0d4c
ada: Tweak condition for name resolution failure

It is sometimes used as a convention across GNAT's code to set the Etype
field of a node to Any_Type to signal a name resolution error. This has
the potential to be confusing, which is why this patch replaces one such
use of the convention by a less convoluted check.

This only affects error recovery paths, and possibly doesn't change the
behavior of the compiler at all.

gcc/ada/ChangeLog:

* sem_ch4.adb (Analyze_Selected_Component): Tweak condition.
gcc/ada/sem_ch4.adb