]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Improve warning on abstract equality
authorBob Duff <duff@adacore.com>
Wed, 5 Nov 2025 14:14:35 +0000 (09:14 -0500)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 18 Nov 2025 15:05:09 +0000 (16:05 +0100)
commit86ab439df614a2b5fc774e54bc1c37978b6fbf15
treee0e5c36a0ebc10912ac63c0ab4c0b122029f3717
parent738895e36c11e505266295dd313386b0eedf54c7
ada: Improve warning on abstract equality

In many cases, we warn if an abstract equality function
is called implicitly. In the case of record equality,
this patch adds a mention of the particular component_declaration
for which an abstract "=" is invoked; otherwise it is hard to
understand the warning for record types with many components.

gcc/ada/ChangeLog:

* exp_ch4.adb (Warn_On_Abstract_Equality_For_Component):
Add additional information in the record-component case.
gcc/ada/exp_ch4.adb