]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/ada/sem_attr.adb
[multiple changes]
[gcc.git] / gcc / ada / sem_attr.adb
index 10af9e2d05493f7824336c9ea32502522cf1e1ed..345fdb55eebf439e1ef48001f60011bfa45212e3 100644 (file)
@@ -3849,8 +3849,7 @@ package body Sem_Attr is
 
          --  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)));
@@ -3858,8 +3857,7 @@ package body Sem_Attr is
          --  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)));
This page took 0.038482 seconds and 5 git commands to generate.