From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ciao.gmane.io (ciao.gmane.io [116.202.254.214]) by sourceware.org (Postfix) with ESMTPS id 5531E3857C4F for ; Tue, 21 May 2024 18:40:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5531E3857C4F Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=m.gmane-mx.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5531E3857C4F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=116.202.254.214 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716316806; cv=none; b=Xk65QBogASk1T/gmhm87DxXcnx2UyvdeS3SssKrCd+hDRWGbdIFlZvmop3InI8EBpKnhanbM3CrPp3FxuNiVgGPxNe+12Tl4M1I31ZEYdjDVcVoqTeQJ0fNYxpsd3PE4i7GO2qRpnlgWqtDQJXUFyf3IvXdpjpyPdgMDsGABkN0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716316806; c=relaxed/simple; bh=/pSLTyfcJk3yvvCSzfDOwUelH+WUcCOo3unUL1Qajeo=; h=To:From:Subject:Date:Message-ID:Mime-Version; b=BTkXUM7EA0AHnovdGMHJxITlTUD/Ho1x+0P3EgSYTPyIruypteogwSaRafOwsjHrcwiKcUH7jSKGWpocBL2tnUWoLagcWKDBA9JzU9XlNU19llVNpHSl8Ry7V2zWjxRhNYyghsKspuy24X+al8D3EHHJGvhBH11xcg93PUfrRac= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1s9UP4-0001Sf-Oj for gcc-patches@gcc.gnu.org; Tue, 21 May 2024 20:40:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gcc-patches@gcc.gnu.org From: Harald Anlauf Subject: [PING] [PATCH] Fortran: fix bounds check for assignment, class component [PR86100] Date: Tue, 21 May 2024 20:39:57 +0200 Message-ID: <3158c15c-ad4f-4b4c-85cf-cee914a27b72@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird Content-Language: en-US In-Reply-To: Cc: fortran@gcc.gnu.org X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Message-ID: <20240521183957.pwOvsfzSOEsfhaKbooUioz8GRJVBqCuSmQ1YBTy946E@z> Am 13.05.24 um 22:27 schrieb Harald Anlauf: > Dear all, > > the attached patch does two things: > > - it fixes a bogus array bounds check when deep-copying a class component > of a derived type and the class component has rank > 1, the reason being > that the previous code compared the full size of one side with the size > of the first dimension of the other > > - the bounds-check error message that was generated e.g. by an allocate > statement with conflicting sizes in the allocation and the source-expr > will now use an improved abbreviated name pointing to the component > involved, which was introduced in 14-development. > > What I could not resolve: a deep copy may still create no useful array > name in the error message (which I am now unable to trigger). If someone > sees how to extract it reliably from the tree, please let me know. > > Regtested on x86_64-pc-linux-gnu. OK for mainline? > > I would like to backport this to 14-branch after a decent delay. > > Thanks, > Harald >