From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc2f.google.com (mail-oo1-xc2f.google.com [IPv6:2607:f8b0:4864:20::c2f]) by sourceware.org (Postfix) with ESMTPS id 17F1C3858C53; Fri, 25 Aug 2023 00:45:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 17F1C3858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-56e280cc606so76501eaf.1; Thu, 24 Aug 2023 17:45:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692924350; x=1693529150; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=f42poiwofZmscLOjV5+tdhsWBsaTnKaDem64qzXWwjI=; b=O49V+/gfFzf8nHYXA/4uUJCMCjqimQPg1EFXppr8lG7EXIgEN4LnFsBSEboBJ1dEF0 GG62V0q4+7FQRKtE7SDYA7UqL7QlQRXRIB4I8NjyjLGJ6r46UvkxIDSD78frlHnJQm8W AGL8+t/2acoD54KRqGnfbNKNt4Hgdz2Wc+OE+nRuljgMi51v2mLm8W261QP6H/HlFDTn jNRIpVRjSK4M0W7DaC1Lq3p1AYS1N9eGogjcYL17GDIXYON3iaVTVdethlZ1VWs6T/P1 cUUV+GG21TFbP+4qC3ClmVf6LrdHy4yRpuPiqoyfIOmUMqPOVxv6tPuGfp/PVRQ4Hqbp EicQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692924350; x=1693529150; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=f42poiwofZmscLOjV5+tdhsWBsaTnKaDem64qzXWwjI=; b=Z6JBL95EnGJaRZ17ddlEpx53toM0rHt3XvVwUP4V1iN6gJEKqRRjN8SVbHeOLpj+O/ jwYHQBVt7l1zx5AeobsN+V6WcmREUBUMlQyZXzX+5kNWZsddjeh7kNv5zC3UpCzhP+X5 YKaA/io87xBrNgLrhdlYipRwfGGaTRa2+OKN0eeCfTe3AVlPkpKwBU4Vp1xYnjMjyARb qhvKHwtOWIjaxmKohsa7WZXX/4LrlrzzcGqifGbJi4gEjd4P4VU8TQVPhGICBvHrSHCI xokiGPitIulQt+hsmp25A+jJo+qEowfuqDJjoixDYjd6cyRXL6iFywdGPvjaQQlHsneH rYPw== X-Gm-Message-State: AOJu0Yww3agQ0kFhBQllmQTxZyePeLKPDoDYxgEySAQ8SVFMy8j+O0Pj yQYB4SXIfVzLpMSSqFEnwZM= X-Google-Smtp-Source: AGHT+IFRp5k/QX59CD9ZKbfFmJrgSjRJ8gdue8ALqTJw/z6j6A285WQ2A9ZdIvAHbkZkbPZQPQrMUA== X-Received: by 2002:a05:6870:9691:b0:1be:f764:2887 with SMTP id o17-20020a056870969100b001bef7642887mr18769860oaq.2.1692924350304; Thu, 24 Aug 2023 17:45:50 -0700 (PDT) Received: from [192.168.1.20] ([50.37.188.226]) by smtp.gmail.com with ESMTPSA id t20-20020a62ea14000000b006888029fd63sm332425pfh.9.2023.08.24.17.45.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Aug 2023 17:45:46 -0700 (PDT) Message-ID: Date: Thu, 24 Aug 2023 17:45:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] Fortran: improve bounds checking for DATA with implied-do [PR35095] To: Harald Anlauf , fortran , gcc-patches References: Content-Language: en-US From: Jerry D In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.3 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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 8/24/23 2:28 PM, Harald Anlauf via Fortran wrote: > Dear all, > > the attached patch adds stricter bounds-checking for DATA statements > with implied-do. I chose to allow overindexing (for arrays of rank > greater than 1) for -std=legacy, as there might be codes in the wild > that need this (and this is accepted by some other compilers, while > NAG is strict here). We now get a warning with -std=gnu, and an > error with -std=fxxxx. > > Regtested on x86_64-pc-linux-gnu. OK for mainline? > > (The PR is over 15 years old, so no backport intended... ;-) > > Thanks, > Harald > Looks good Harold, OK for mainline.