public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-7888] ada: Fix inverted implementation of RM 8.4(10) clause for operators
@ 2023-09-27  8:26 Eric Botcazou
  0 siblings, 0 replies; only message in thread
From: Eric Botcazou @ 2023-09-27  8:26 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:57b71c70689ba0d5490fc7bfae6230257c985985

commit r13-7888-g57b71c70689ba0d5490fc7bfae6230257c985985
Author: Eric Botcazou <ebotcazou@adacore.com>
Date:   Wed May 10 00:05:55 2023 +0200

    ada: Fix inverted implementation of RM 8.4(10) clause for operators
    
    The comment is correct but the code implements the opposite outcome.
    
    gcc/ada/
    
            * sem_type.adb (Disambiguate): Fix pasto in the implementation of
            the RM 8.4(10) clause for operators.

Diff:
---
 gcc/ada/sem_type.adb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ada/sem_type.adb b/gcc/ada/sem_type.adb
index 0c0df68fee5..12f04d038cb 100644
--- a/gcc/ada/sem_type.adb
+++ b/gcc/ada/sem_type.adb
@@ -2229,7 +2229,7 @@ package body Sem_Type is
                 Is_Immediately_Visible (Base_Type (Etype (Right_Opnd (N))))
               and then Is_Potentially_Use_Visible (User_Subp)
             then
-               if It2.Nam = Predef_Subp then
+               if It1.Nam = Predef_Subp then
                   return It1;
                else
                   return It2;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-27  8:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-27  8:26 [gcc r13-7888] ada: Fix inverted implementation of RM 8.4(10) clause for operators Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).