]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Improve message for misused implicitly-defined preprocessor symbol.
authorSteve Baird <baird@adacore.com>
Tue, 22 Oct 2024 23:20:27 +0000 (16:20 -0700)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 12 Nov 2024 13:00:50 +0000 (14:00 +0100)
commita45219815d17b050abc25a6348bfe7c981399363
tree6bfc1dbdca6bae0247e5467967a240715e142890
parentfa50a45ece189fc19054e5596c974aca82525278
ada: Improve message for misused implicitly-defined preprocessor symbol.

If the -u option is specified, then otherwise-undefined preprocessor
symbols are implicitly defined to be False. If such an implicitly-defined
symbol is then incorrectly used in a context that requires an integer value,
the resulting error message should not incorrectly state that the symbol is
undefined.

gcc/ada/ChangeLog:

* prep.adb (Expression): Improve error message text when an
implicitly-defined Boolean-valued symbol is used in a context that
requires an integer value.
gcc/ada/prep.adb