mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-23 01:50:33 +08:00
[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:
parent
9fdbcec694
commit
8cb66f9609
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user