]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ada: Fix omission in comment
authorRonan Desplanques <desplanques@adacore.com>
Mon, 24 Mar 2025 11:39:29 +0000 (12:39 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 10 Jun 2025 07:32:05 +0000 (09:32 +0200)
gcc/ada/ChangeLog:

* sem_ch3.adb (Find_Type_Of_Object): Fix comment.

gcc/ada/sem_ch3.adb

index fb24f0f5db2f9eeeafd83fa4517fd6b10384d9cc..323548c0aa4f5b035892337f7af9292c8817af77 100644 (file)
@@ -18838,7 +18838,8 @@ package body Sem_Ch3 is
                    or else Nkind (P) /= N_Object_Declaration
                    or else Is_Library_Level_Entity (Defining_Identifier (P)));
 
-      --  Otherwise, the object definition is just a subtype_mark
+      --  Otherwise, either the object definition is just a subtype_mark or we
+      --  are analyzing a component declaration.
 
       else
          T :=