r274297 - in /trunk/gcc: ada/ChangeLog ada/sem_...

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Mon Aug 12 09:06:00 GMT 2019


Author: pmderodat
Date: Mon Aug 12 09:00:59 2019
New Revision: 274297

URL: https://gcc.gnu.org/viewcvs?rev=274297&root=gcc&view=rev
Log:
[Ada] Improper error message on equality op with different operand types

2019-08-12  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

	* sem_ch6.adb (heck_Untagged_Equality): Verify that user-defined
	equality has the same profile as the predefined equality before
	applying legality rule in RM 4.5.2 (9.8).

gcc/testsuite/

	* gnat.dg/equal10.adb, gnat.dg/equal10.ads: New testcase.

Added:
    trunk/gcc/testsuite/gnat.dg/equal10.adb
    trunk/gcc/testsuite/gnat.dg/equal10.ads
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/sem_ch6.adb
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list