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

pmderodat@gcc.gnu.org pmderodat@gcc.gnu.org
Wed Aug 14 09:51:00 GMT 2019


Author: pmderodat
Date: Wed Aug 14 09:51:43 2019
New Revision: 274458

URL: https://gcc.gnu.org/viewcvs?rev=274458&root=gcc&view=rev
Log:
[Ada] Spurious error in discriminated aggregate

This patch fixes a bug in which a spurious error is given on an
aggregate of a type derived from a subtype with a constrained
discriminant.

2019-08-14  Bob Duff  <duff@adacore.com>

gcc/ada/

	* exp_aggr.adb (Init_Hidden_Discriminants): Avoid processing the
	wrong discriminant, which could be of the wrong type.

gcc/testsuite/

	* gnat.dg/discr57.adb: New testcase.

Added:
    trunk/gcc/testsuite/gnat.dg/discr57.adb
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/exp_aggr.adb
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list