From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id 76CE53858400; Fri, 8 Oct 2021 22:28:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 76CE53858400 Received: by mail-pj1-x1030.google.com with SMTP id pi19-20020a17090b1e5300b0019fdd3557d3so8812039pjb.5; Fri, 08 Oct 2021 15:28:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=5Wf79rv6M5e5Z7dijfyh9SY4laIUB+F3VEdoSHPDSqo=; b=gEUGtxOsQtr7XrzYgyM14IAkrIH9l0CYR0BTxon4Vt7faljYE5ydZOs5p44ghFNSiq 4oa5IElcKBI6BW4OnbEdm1cD1IO2fHg7CATaEDyqX19lSp1aPxD7hyHWR35UQ8G/NzkZ ph1dHVvtw36v8fWktn8tRIt56g4rzYkiMZwC2lwt2GSiYmYBH3omoNx5V1r5JwbwMM11 DnQHf9SWbMTLvIA5rjq/W7Y5zGoN+6r/FSDCH3JjPciT3BWqOoUsjDq0ypbkcf3QWaLc GWJITyiAzQ4ikX//oeC6vWYClivHCwizJA+gGWCS63jkXeFa9xtYpZmJbZMW6+dw+sj0 3MOw== X-Gm-Message-State: AOAM533ymBjx3nnz710/GbcPSZzK73m/3s+qAadnSoVWQxxfEtqRlNVl EUkcRKQJQ+loDacsITPicq0= X-Google-Smtp-Source: ABdhPJxB3H9zM3AUSNryjq3RE15wu+GOfGqYM6vOz4OkvqnM9mqX5AmsXXnzB/Ak7EiYr5hJaEQ4Ww== X-Received: by 2002:a17:902:d718:b0:13d:e2ec:1741 with SMTP id w24-20020a170902d71800b0013de2ec1741mr11699404ply.38.1633732116452; Fri, 08 Oct 2021 15:28:36 -0700 (PDT) Received: from [192.168.1.28] ([50.46.203.130]) by smtp.gmail.com with ESMTPSA id c3sm309889pgn.76.2021.10.08.15.28.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 Oct 2021 15:28:36 -0700 (PDT) Message-ID: <08033809-1e2f-182b-2994-4796b66d57e3@gmail.com> Date: Fri, 8 Oct 2021 15:28:35 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH] PR fortran/65454 - accept both old and new-style relational operators Content-Language: en-US To: Harald Anlauf , fortran , gcc-patches References: From: Jerry D In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Oct 2021 22:28:39 -0000 On 10/8/21 2:33 PM, Harald Anlauf via Fortran wrote: > Dear Fortranners, > > F2018:10.1.5.5.1(2) requires the same interpretation of old and new-style > relational operators. We internally distinguish between old and new style, > but try to map appropriately when used. > > This mapping was missing when reading a module via > USE module, ONLY: OPERATOR(op) > where op used a style different from the INTERFACE OPERATOR statement in > the declaring module. The attached patch remedies this. > > Note: we do neither change the module format nor actually remap an operator. > We simply improve the check whether the requested operator symbol exists in > the old-style or new-style version. > > Regtested on x86_64-pc-linux-gnu. OK for mainline? > > Thanks, > Harald > Looks all good Harald, OK and thanks for the support! Jerry