https://gcc.gnu.org/g:8d5375aa4fe6245162c7bdc99862d3b8527ec6e3

commit r16-1374-g8d5375aa4fe6245162c7bdc99862d3b8527ec6e3
Author: Ronan Desplanques <desplanq...@adacore.com>
Date:   Mon Mar 24 12:39:29 2025 +0100

    ada: Fix omission in comment
    
    gcc/ada/ChangeLog:
    
            * sem_ch3.adb (Find_Type_Of_Object): Fix comment.

Diff:
---
 gcc/ada/sem_ch3.adb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/ada/sem_ch3.adb b/gcc/ada/sem_ch3.adb
index fb24f0f5db2f..323548c0aa4f 100644
--- a/gcc/ada/sem_ch3.adb
+++ b/gcc/ada/sem_ch3.adb
@@ -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 :=

Reply via email to