https://gcc.gnu.org/g:5e9df85dd9807b034532dbacab9ef322879d0b3e

commit r17-4572-g5e9df85dd9807b034532dbacab9ef322879d0b3e
Author: Eric Botcazou <[email protected]>
Date:   Tue Sep 22 19:56:25 2026 +0200

    Ada: Fix typo in recent change
    
    It is harmless because Tagged_Membership expects only an In operator.
    
    gcc/ada/
            * exp_ch6.adb (Expand_Simple_Function_Return): Fix typo.

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

diff --git a/gcc/ada/exp_ch6.adb b/gcc/ada/exp_ch6.adb
index caf282df99b0..1441aa828388 100644
--- a/gcc/ada/exp_ch6.adb
+++ b/gcc/ada/exp_ch6.adb
@@ -7408,7 +7408,7 @@ package body Exp_Ch6 is
             --    [Constraint_Error when not (Exp in R_Type)]
 
             In_Test : constant Node_Id :=
-              Make_Not_In
+              Make_In
                 (Loc,
                  Duplicate_Subexpr (Exp),
                  New_Occurrence_Of (R_Type, Loc));

Reply via email to