From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 912943858C5F; Thu, 18 May 2023 01:29:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 912943858C5F 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-pf1-x435.google.com with SMTP id d2e1a72fcca58-645cfeead3cso222437b3a.1; Wed, 17 May 2023 18:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684373352; x=1686965352; 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=+ZbCuqTlHBtQGBR2bWK93uBq7AmRmeL3qSCpGR+ES9Y=; b=eHy13BtUNcvc22Yf1SNQtuS9euDS/g4jQvdgrwsjMsr8K8TKDai3u6YBbu0c6dbaEJ TOo/kPKE1NOuxAICYpNLCrHT+mdNIa59NlGq6mf8qFk4EhTZbx6qUPDVlJ+Qf1L01KIk yzzkhrXHYZaHkwtULNV8D72w6EKL8fHa6roIlE9Wi496I40MjTN0QGl4aeM5lw2Q+h4j pLXw7Wapx2PuKbPsdEVADcD4Djy+v7fldByUobJLG7rE47s+wiYQ3m+Ft+LYpH2JPPfY mAYfUShonngBQPZyxl++LBzNd3j8CWGO29Bk6oPeapQPLhtgf7J5mWzSIgZ2Itr45Ckd 07Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684373352; x=1686965352; 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=+ZbCuqTlHBtQGBR2bWK93uBq7AmRmeL3qSCpGR+ES9Y=; b=IYFboqxv9hw42kGhGHx+cdhu2qfc9xpCE1fRz47Z6rbWP/iBXNZYjlwgBxTHdHzJ0s MYVpssV411Gmb3G2vtR72f4FFya4B3wqHxzcJ8KyE9Supo3F/vyv0StOLCIUBt8oqh92 dbTkHCH99xCoAXeZfKJTQ8YMBxdvrh5ZceROzKFn+5QfZ5G6C7NtNHKwWVgp4hi1Fnoo MSDY0bjodh2wY8la3dA28HqQh3PTRuBdyCJ+M9MdpJd6uIJnk1dWdYg1an0qGRLa4wX1 A3IKeHgkHCt8qieH4or7xjt5A9UX20Q08vxVThsyRLIjr7dvdv8PnDHVz6JhjS1Ucv6g 9RLQ== X-Gm-Message-State: AC+VfDw8JByG2ILs5PohhJZ9pJjJodJm4uG3/uHcmABxItd/uHWGM+O5 nMMDFXSOOq7jiunp3PDsifM= X-Google-Smtp-Source: ACHHUZ5nn8BRItxTMusLEepIduGCHgOKBJOPa9BTh/zANnzFAg/3P46WPs2KoRqb4/mAfSTeOEPIkA== X-Received: by 2002:a05:6a00:4003:b0:644:c382:a380 with SMTP id by3-20020a056a00400300b00644c382a380mr5673459pfb.0.1684373352436; Wed, 17 May 2023 18:29:12 -0700 (PDT) Received: from [192.168.1.20] ([50.37.188.226]) by smtp.gmail.com with ESMTPSA id i12-20020aa78d8c000000b0063f16daf7dbsm167898pfr.55.2023.05.17.18.29.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 May 2023 18:29:12 -0700 (PDT) Message-ID: <0466a3a8-68fe-2144-6e8a-cc78b3b6ffd3@gmail.com> Date: Wed, 17 May 2023 18:29:11 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH] Fortran: set shape of initializers of zero-sized arrays [PR95374,PR104352] 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=-2.6 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,T_SCC_BODY_TEXT_LINE 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 5/17/23 11:52 AM, Harald Anlauf via Fortran wrote: > Dear all, > > the attached patch is neat, because it fixes a bug by removing code ;-) > > When generating the initializer for a parameter array, we excepted > the case of size 0, which however prevented the detection of array > bounds violations and lead to ICEs in various places. The solution > which removes the comparison for size > 0 also has the bonus that > it fixes a minor memory leak for the size==0 case... > > Regtested on x86_64-pc-linux-gnu. OK for mainline? > > Thanks, > Harald > Looks Good To Me. OK, Jerry