https://gcc.gnu.org/g:92d65775d773f746ab999e94a405a26e3c3a3cab

commit r15-6145-g92d65775d773f746ab999e94a405a26e3c3a3cab
Author: Javier Miranda <mira...@adacore.com>
Date:   Tue Nov 19 11:07:42 2024 +0000

    ada: Refactor code of Check_Ambiguous_Call and Valid_Conversion
    
    gcc/ada/ChangeLog:
    
            * sem_res.adb (Is_Ambiguous_Operand): Add missing decoration of
            the operand when it is labeled overloaded but has just one
            interpretation.

Diff:
---
 gcc/ada/sem_res.adb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/ada/sem_res.adb b/gcc/ada/sem_res.adb
index 5ca206135295..cd75508021c5 100644
--- a/gcc/ada/sem_res.adb
+++ b/gcc/ada/sem_res.adb
@@ -13785,10 +13785,9 @@ package body Sem_Res is
 
             return True;
          end if;
-
-         Set_Etype (Operand, It1.Typ);
       end if;
 
+      Set_Etype (Operand, It1.Typ);
       return False;
    end Is_Ambiguous_Operand;

Reply via email to