r260997 - in /trunk/gcc: ada/ChangeLog ada/exp_...

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Thu May 31 10:45:00 GMT 2018


Author: pmderodat
Date: Thu May 31 10:45:51 2018
New Revision: 260997

URL: https://gcc.gnu.org/viewcvs?rev=260997&root=gcc&view=rev
Log:
[Ada] Fix compiler crash for tagged private types

2018-05-31  Javier Miranda  <miranda@adacore.com>

gcc/ada/

	* sem_util.ads, sem_util.adb (Find_Primitive_Eq): New subprogram.
	* exp_ch4.adb (Expand_Composite_Equality): Use the new subprogram
	Find_Primitive_Eq to search for the primitive of types whose underlying
	type is a tagged type.

gcc/testsuite/

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

Added:
    trunk/gcc/testsuite/gnat.dg/tagged1.adb
    trunk/gcc/testsuite/gnat.dg/tagged1.ads
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/exp_ch4.adb
    trunk/gcc/ada/sem_util.adb
    trunk/gcc/ada/sem_util.ads
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list