]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Missing support for 'Old with overloaded function
authorJavier Miranda <miranda@adacore.com>
Tue, 23 Apr 2024 17:30:23 +0000 (17:30 +0000)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 13 Jun 2024 13:30:28 +0000 (15:30 +0200)
commit50ffb636ca0553825fa4693f9b6759683a35f94a
treec6e33a897f84b374ed7094423138ed5c90df5ab9
parentf90851a93c921babd092551eda1e70718e6494fb
ada: Missing support for 'Old with overloaded function

The compiler reports an error when the prefix of 'Old is
a call to an overloaded function that has no parameters.

gcc/ada/

* sem_attr.adb (Analyze_Attribute): Enhance support for
using 'Old with a prefix that references an overloaded
function that has no parameters; add missing support
for the use of 'Old within qualified expressions.

* sem_util.ads (Preanalyze_And_Resolve_Without_Errors):
New subprogram.

* sem_util.adb (Preanalyze_And_Resolve_Without_Errors):
New subprogram.
gcc/ada/sem_attr.adb
gcc/ada/sem_util.adb
gcc/ada/sem_util.ads