[multiple changes]
[gcc.git] / gcc / ada / sem_prag.adb
index 5066e7689f7bc1cb7945e7974ca0a3f75f5054d0..f696655d65167aba54311ae77d7aed168f0f9026 100644 (file)
@@ -4080,7 +4080,10 @@ package body Sem_Prag is
 
          --  Object declaration of a single concurrent type
 
-         elsif Nkind (Subp_Decl) = N_Object_Declaration then
+         elsif Nkind (Subp_Decl) = N_Object_Declaration
+           and then Is_Single_Concurrent_Object
+                      (Unique_Defining_Entity (Subp_Decl))
+         then
             null;
 
          --  Single task type