Commit 563be3ee by Gary Dismukes Committed by Pierre-Marie de Rodat

[Ada] Up-level addressing problems with private tasks and selective accept procs

2019-12-13  Gary Dismukes  <dismukes@adacore.com>

gcc/ada/

	* sem_util.adb (Scope_Within): For the case of checking for a
	task type procedure, check the Implementation_Base_Type of Curr.
	(Scope_Within_Or_Same): For the case of checking for a task type
	procedure, check the Implementation_Base_Type of Curr.

From-SVN: r279344
parent 9ea2a24d
2019-12-13 Gary Dismukes <dismukes@adacore.com>
* sem_util.adb (Scope_Within): For the case of checking for a
task type procedure, check the Implementation_Base_Type of Curr.
(Scope_Within_Or_Same): For the case of checking for a task type
procedure, check the Implementation_Base_Type of Curr.
2019-12-13 Arnaud Charlet <charlet@adacore.com>
* impunit.adb (Non_Imp_File_Names_12): Add
......
......@@ -24721,8 +24721,9 @@ package body Sem_Util is
-- A selective accept body appears within a task type, but the
-- enclosing subprogram is the procedure of the task body.
elsif Ekind (Curr) = E_Task_Type
and then Outer = Task_Body_Procedure (Curr)
elsif Ekind (Implementation_Base_Type (Curr)) = E_Task_Type
and then
Outer = Task_Body_Procedure (Implementation_Base_Type (Curr))
then
return True;
......@@ -24763,8 +24764,9 @@ package body Sem_Util is
if Curr = Outer then
return True;
elsif Ekind (Curr) = E_Task_Type
and then Outer = Task_Body_Procedure (Curr)
elsif Ekind (Implementation_Base_Type (Curr)) = E_Task_Type
and then
Outer = Task_Body_Procedure (Implementation_Base_Type (Curr))
then
return True;
......
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