From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1285) id 92B873871036; Wed, 27 Sep 2023 08:26:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92B873871036 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695803219; bh=iKF8CeQQ1v8RZ9P6OdfsanFJCdigsb7iJFRm8pm2+yo=; h=From:To:Subject:Date:From; b=UoJnoRTGthyQ2OpzLDJUaNCnkDDacHlwaLSJm2+xgQLLYOZ9PIHaCHGAtKq6AUd1q Z2fUl2dKIIAZ9/NtwBciT8kWeacVqAtPD6Ch8H6a5TnDgZOhWR3oMdXaa5Yak0vEym RvhFHf0JeI873Ymn1LH+zS1LTBReW8OqkzV+su78= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Eric Botcazou To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-7888] ada: Fix inverted implementation of RM 8.4(10) clause for operators X-Act-Checkin: gcc X-Git-Author: Eric Botcazou X-Git-Refname: refs/heads/releases/gcc-13 X-Git-Oldrev: d6e89a1edb4faa18985a16a210d8c5525efd0839 X-Git-Newrev: 57b71c70689ba0d5490fc7bfae6230257c985985 Message-Id: <20230927082659.92B873871036@sourceware.org> Date: Wed, 27 Sep 2023 08:26:59 +0000 (GMT) List-Id: https://gcc.gnu.org/g:57b71c70689ba0d5490fc7bfae6230257c985985 commit r13-7888-g57b71c70689ba0d5490fc7bfae6230257c985985 Author: Eric Botcazou 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;