r273327 - in /trunk/gcc: ada/ChangeLog ada/sem_...
pmderodat@gcc.gnu.org
pmderodat@gcc.gnu.org
Wed Jul 10 08:59:00 GMT 2019
Author: pmderodat
Date: Wed Jul 10 08:59:55 2019
New Revision: 273327
URL: https://gcc.gnu.org/viewcvs?rev=273327&root=gcc&view=rev
Log:
[Ada] Spurious error on overloaded equality in postcondition
This patch fixes a spurious error in a postcondition in a nested
instantiation when the expression includes an inherited equality and
checks are enabled.
2019-07-10 Ed Schonberg <schonberg@adacore.com>
gcc/ada/
* sem_res.adb (Resolve_Equality_Op): Do not replace the resolved
operator by its alias if expander is not active, because the
operand type may not be frozen yet and its inherited operations
have not yet been created.
gcc/testsuite/
* gnat.dg/equal8.adb, gnat.dg/equal8.ads,
gnat.dg/equal8_pkg.ads: New testcase.
Added:
trunk/gcc/testsuite/gnat.dg/equal8.adb
trunk/gcc/testsuite/gnat.dg/equal8.ads
trunk/gcc/testsuite/gnat.dg/equal8_pkg.ads
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/sem_res.adb
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list