[Ada] Fix SPARK expansion of iterated_component_assoc in delta aggregate

gcc/ada/

	* exp_spark.adb (Expand_SPARK_Delta_Or_Update): Add missing call
	to Enter_Name, just like it is called for
	iterated_component_association in Expand_SPARK_N_Aggregate.
This commit is contained in:
Piotr Trojanek 2020-09-10 00:01:44 +02:00 committed by Pierre-Marie de Rodat
parent 9fdbcec694
commit 8cb66f9609

View File

@ -227,6 +227,7 @@ package body Exp_SPARK is
if Nkind (Assoc) = N_Iterated_Component_Association then
Push_Scope (Scope (Defining_Identifier (Assoc)));
Enter_Name (Defining_Identifier (Assoc));
Analyze_And_Resolve (Expr, Comp_Type);
end if;