-- Case of attribute used as actual for subprogram (positional)
- elsif Nkind_In (Parnt, N_Procedure_Call_Statement,
- N_Function_Call)
+ elsif Nkind (Parnt) in N_Subprogram_Call
and then Is_Entity_Name (Name (Parnt))
then
Must_Be_Imported (Entity (Name (Parnt)));
-- Case of attribute used as actual for subprogram (named)
elsif Nkind (Parnt) = N_Parameter_Association
- and then Nkind_In (GParnt, N_Procedure_Call_Statement,
- N_Function_Call)
+ and then Nkind (GParnt) in N_Subprogram_Call
and then Is_Entity_Name (Name (GParnt))
then
Must_Be_Imported (Entity (Name (GParnt)));