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
+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
-- 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;
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;