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

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Mon May 28 08:56:00 GMT 2018


Author: pmderodat
Date: Mon May 28 08:55:52 2018
New Revision: 260839

URL: https://gcc.gnu.org/viewcvs?rev=260839&root=gcc&view=rev
Log:
[Ada] Fix internal error on renaming of equality for record type

This adjusts the previous change to the cases where the array type is not
yet frozen and, therefore, where Size_Depends_On_Discriminant is not yet
computed, by doing the computation manually.

2018-05-28  Eric Botcazou  <ebotcazou@adacore.com>

gcc/ada/

	* exp_ch4.adb (Expand_Composite_Equality): Compute whether the size
	depends on a discriminant manually instead of using the predicate
	Size_Depends_On_Discriminant in the array type case.

gcc/testsuite/

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

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



More information about the Gcc-cvs mailing list