]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Improve documentation comment
authorRonan Desplanques <desplanques@adacore.com>
Thu, 7 Aug 2025 12:34:56 +0000 (14:34 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 9 Sep 2025 12:39:57 +0000 (14:39 +0200)
The new version of the comment makes it clearer that
Check_Nonoverridable_Aspects is only concerned with cases where a partial
view is present.

This patch also fixes a reference to an ARM clause in the comment.

gcc/ada/ChangeLog:

* sem_ch3.adb (Check_Nonoverridable_Aspects): Improve documentation
comment.

gcc/ada/sem_ch3.adb

index 04e3098bea76b58fd2c3847266513ce69bdd7563..8ac0fd3bc9154e4d69ca4e604a8afc29725b2043 100644 (file)
@@ -3034,8 +3034,10 @@ package body Sem_Ch3 is
                                      or else In_Package_Body (Current_Scope));
 
       procedure Check_Nonoverridable_Aspects;
-      --  Apply the rule in RM 13.1.1(18.4/4) on iterator aspects that cannot
-      --  be overridden, and can only be confirmed on derivation.
+      --  Apply rules for nonoverridable aspects on types with partial views
+      --  described in RM 13.1.1 (18.6/6). This procedure must only be called
+      --  in the partial view completion case, i.e. when T points to the
+      --  full view and Def_Id points to the partial view.
 
       procedure Check_Ops_From_Incomplete_Type;
       --  If there is a tagged incomplete partial view of the type, traverse