CodePeer issues a false alarm when reading local entity Component later
if not initialized by default. Fix this.
gcc/ada/
* sem_aggr.adb (Resolve_Record_Aggregate): Add dummy initialization and
assertion that clarifies when we reassigned to a useful value.
end if;
while Present (Selectr) loop
+ Component := Empty;
New_Assoc := First (New_Assoc_List);
while Present (New_Assoc) loop
Component := First (Choices (New_Assoc));
Next (New_Assoc);
end loop;
+ -- If we found an association, then this is a legal component
+ -- of the type in question.
+
+ pragma Assert (if Present (New_Assoc) then Present (Component));
+
-- If no association, this is not a legal component of the type
-- in question, unless its association is provided with a box.