Commit fb34edfa by Ed Schonberg Committed by Arnaud Charlet

2008-08-22 Ed Schonberg <schonberg@adacore.com>

	* exp_tss.adb:
	(Base_Init_Proc): For a protected subtype, use the base type of the
	corresponding record to locate the propoer initialization procedure.

From-SVN: r139465
parent c9626ed6
......@@ -57,7 +57,12 @@ package body Exp_Tss is
elsif Is_Concurrent_Type (Full_Type)
and then Present (Corresponding_Record_Type (Base_Type (Full_Type)))
then
return Init_Proc (Corresponding_Record_Type (Base_Type (Full_Type)));
-- The initialization routine to be called is that of the base type
-- of the corresponding record type, which may itself be a subtype
-- and possibly an itype.
return Init_Proc
(Base_Type (Corresponding_Record_Type (Base_Type (Full_Type))));
else
Proc := Init_Proc (Base_Type (Full_Type));
......
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