]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Remove incorrect comment
authorRonan Desplanques <desplanques@adacore.com>
Mon, 11 Aug 2025 15:34:50 +0000 (17:34 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 9 Sep 2025 12:40:00 +0000 (14:40 +0200)
gcc/ada/ChangeLog:

* sem_ch3.adb (Analyze_Incomplete_Type_Decl): Remove incorrect
comment.

gcc/ada/sem_ch3.adb

index eae366e09d7b6630bd1d69f0c02b66313f111a7d..b91c6785b035af259684f854639c89aa8546bcac 100644 (file)
@@ -3608,11 +3608,7 @@ package body Sem_Ch3 is
       Generate_Definition (Defining_Identifier (N));
 
       --  Process an incomplete declaration. The identifier must not have been
-      --  declared already in the scope. However, an incomplete declaration may
-      --  appear in the private part of a package, for a private type that has
-      --  already been declared.
-
-      --  In this case, the discriminants (if any) must match
+      --  declared already in the scope.
 
       T := Find_Type_Name (N);