Commit 0e08f7ab by Ed Schonberg Committed by Arnaud Charlet

exp_aggr.adb (Build_Array_Aggr_Code): If component type includes tasks and…

exp_aggr.adb (Build_Array_Aggr_Code): If component type includes tasks and context is an object declaration.

2008-05-27  Ed Schonberg  <schonberg@adacore.com>

	* exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
	tasks and context is an object declaration. create master entity before
	expansion.

From-SVN: r136026
parent d33fb1e6
...@@ -1521,6 +1521,16 @@ package body Exp_Aggr is ...@@ -1521,6 +1521,16 @@ package body Exp_Aggr is
Make_Integer_Literal (Loc, Uint_0)))); Make_Integer_Literal (Loc, Uint_0))));
end if; end if;
-- If the component type contains tasks, we need to build a Master
-- entity in the current scope, because it will be needed if build-
-- in-place functions are called in the expanded code.
if Nkind (Parent (N)) = N_Object_Declaration
and then Has_Task (Typ)
then
Build_Master_Entity (Defining_Identifier (Parent (N)));
end if;
-- STEP 1: Process component associations -- STEP 1: Process component associations
-- For those associations that may generate a loop, initialize -- For those associations that may generate a loop, initialize
......
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