]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Update comment about implicit inputs of Depends contract
authorPiotr Trojanek <trojanek@adacore.com>
Thu, 4 Jan 2024 18:26:12 +0000 (19:26 +0100)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 7 May 2024 07:55:50 +0000 (09:55 +0200)
Sync comment with the updated SPARK RM rules.

gcc/ada/

* sem_prag.adb (Collect_Global_Item): Update comment.

gcc/ada/sem_prag.adb

index 5764992237b4901fa9090518a7ea6eb36a8db326..0eb4450dba3346d507593d7a2a5502fb1c84b27d 100644 (file)
@@ -31669,8 +31669,7 @@ package body Sem_Prag is
                Append_New_Elmt (Formal, Subp_Outputs);
 
                --  OUT parameters can act as inputs when the related type is
-               --  tagged, unconstrained array, unconstrained record, or record
-               --  with unconstrained components.
+               --  tagged, unconstrained array or unconstrained record.
 
                if Ekind (Formal) = E_Out_Parameter
                  and then Is_Unconstrained_Or_Tagged_Item (Formal)