Commit ad5a445d by Hristian Kirtchev Committed by Arnaud Charlet

exp_ch4.adb (Expand_N_Allocator): Update the master of an anonymous…

exp_ch4.adb (Expand_N_Allocator): Update the master of an anonymous access-to-controlled type to utilize the...

2011-12-12  Hristian Kirtchev  <kirtchev@adacore.com>

	* exp_ch4.adb (Expand_N_Allocator): Update the master of an
	anonymous access-to-controlled type to utilize the heterogeneous
	master associated with the current unit.

From-SVN: r182239
parent 83d5afb7
2011-12-12 Hristian Kirtchev <kirtchev@adacore.com>
* exp_ch4.adb (Expand_N_Allocator): Update the master of an
anonymous access-to-controlled type to utilize the heterogeneous
master associated with the current unit.
2011-12-12 Ed Schonberg <schonberg@adacore.com>
* sem_ch6.adb (Analyze_Expression_Function): If the function
......
......@@ -3510,11 +3510,10 @@ package body Exp_Ch4 is
-- The finalization master must be inserted and analyzed as part of
-- the current semantic unit. This form of expansion is not carried
-- out in Alfa mode because it is useless.
-- out in Alfa mode because it is useless. Note that the master is
-- updated when analysis changes current units.
if No (Finalization_Master (PtrT))
and then not Alfa_Mode
then
if not Alfa_Mode then
Set_Finalization_Master (PtrT, Current_Anonymous_Master);
end if;
end if;
......
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