Commit 1ab9541b by Ed Schonberg Committed by Arnaud Charlet

sem_aggr.adb (Resolve_Record_Aggregate): An others association with a box need…

sem_aggr.adb (Resolve_Record_Aggregate): An others association with a box need not correspond to any component.

2007-09-12  Ed Schonberg  <schonberg@adacore.com>

	* sem_aggr.adb (Resolve_Record_Aggregate): An others association with
	a box need not correspond to any component.

From-SVN: r128427
parent 2d9ea47f
......@@ -2665,6 +2665,13 @@ package body Sem_Aggr is
Error_Msg_N ("OTHERS must appear last in an aggregate",
Selector_Name);
return;
-- (Ada2005): If this is an association with a box,
-- indicate that the association need not represent
-- any component.
elsif Box_Present (Assoc) then
Others_Box := True;
end if;
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment