From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cc-smtpout2.netcologne.de (cc-smtpout2.netcologne.de [IPv6:2001:4dd0:100:1062:25:2:0:2]) by sourceware.org (Postfix) with ESMTPS id 648F13858430 for ; Thu, 31 Mar 2022 18:36:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 648F13858430 Received: from cc-smtpin2.netcologne.de (cc-smtpin2.netcologne.de [89.1.8.202]) by cc-smtpout2.netcologne.de (Postfix) with ESMTP id D3DF512773; Thu, 31 Mar 2022 20:36:39 +0200 (CEST) Received: from [IPV6:2001:4dd4:f722:0:7285:c2ff:fe6c:992d] (2001-4dd4-f722-0-7285-c2ff-fe6c-992d.ipv6dyn.netcologne.de [IPv6:2001:4dd4:f722:0:7285:c2ff:fe6c:992d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by cc-smtpin2.netcologne.de (Postfix) with ESMTPSA id 8E1DD1205D; Thu, 31 Mar 2022 20:36:37 +0200 (CEST) Message-ID: <4f4c6b5f-995f-385a-bacc-59e96090dc97@netcologne.de> Date: Thu, 31 Mar 2022 20:36:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: allocatable arrays and -fmax-stack-var-size Content-Language: en-US To: Steve Kargl , "fortran@gcc.gnu.org" References: <20220331170747.GA57166@troutmask.apl.washington.edu> From: Thomas Koenig In-Reply-To: <20220331170747.GA57166@troutmask.apl.washington.edu> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-NetCologne-Spam: L X-Rspamd-Queue-Id: 8E1DD1205D X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, T_SCC_BODY_TEXT_LINE 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: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2022 18:36:47 -0000 Hi Steve, > So, it seems that at some point in the past, the option > -fmax-stack-var-size was expanded to allow the placement > of an allocatable array into static memory. This has > a possibly unintended consequence in that automatic > deallocation of an allocatable array does not (or can > not) occur. Sounds like a bug to me, and if your test program worked in a previous release, it's a regression. Probably best to open a PR. Best regards Thomas