From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by sourceware.org (Postfix) with ESMTPS id E86893858D1E; Tue, 21 May 2024 18:39:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E86893858D1E Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmx.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E86893858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=212.227.17.22 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716316801; cv=none; b=dXbc0ELOIJoznFrYOWUPHOv66uGsTkgwWWa1ja2UhcpAmCr9nrUqfX+4QeMmzzVpzaCfQiEJFzhWzXmfKHQPJKtJqLEdFejrccTI2yhGD5JE/Wcy+SxtnYQilEa9dgW/5shGASpKOfD/0qMLMhEqr9EztatE+qLfhRjJ0/aHOm8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716316801; c=relaxed/simple; bh=QGkgIggnyargxt3aQ2QXq4DQm/oeUkGh6sFTtcYTHfw=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:From:To; b=d3nz2l03oL3GdXCzEEYVBFR5tPWuGYMjtKRmxelqQWMd3ne0VCeqc3ArH8umjhQuGhJhzO1KU8/jz+ggmGlt+Q6CNkisJ94OAiP4r8yd3JJ9q0EvFK6pUnOoK9xPrsTgvp6O9m6+CWxa7pY312PpFM7nTQ5wcFE+LbIgWzALhGc= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1716316798; x=1716921598; i=anlauf@gmx.de; bh=qhiWZrRcs9oxj3qtXPAlCODTg6Iv/jOC6XE/UgJ1Ths=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:From:To: References:In-Reply-To:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=nnotiPbLqO4dkPwbyxoShJe33QyLxMwDfQqlj9PZV79b1dFUPzGu2jFy6NRe+0qZ Y20LovTChJafKU0yXY78xaFOHJvGcvEVBBn/NbOxfXJ9GG94Ggq0H90vTFvNa5GZ8 lY0bMF5ybtw6oCz0UzPWMiMnzs1IjG8td5NjCp3+WmfeC2iAIRCG9ETaMHltQmOiX AyzaOXm8BFriA7SVr79/5C86k0e3pQLt2UTbXB9oujIPadVzsw40PZYOKCj10FweB hWbN1xc4nWdHp8MyFhyXd814M3j53sb5qcRdwNgvKQpBSTWkDu+vDl4/xk5/eSS2k ZBN+pufnFbXufYx07A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.178.29] ([79.232.149.151]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Ma20q-1s3uKg1aey-00XLW5; Tue, 21 May 2024 20:39:58 +0200 Message-ID: <3158c15c-ad4f-4b4c-85cf-cee914a27b72@gmx.de> Date: Tue, 21 May 2024 20:39:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PING] [PATCH] Fortran: fix bounds check for assignment, class component [PR86100] From: Harald Anlauf To: fortran , gcc-patches Newsgroups: gmane.comp.gcc.patches,gmane.comp.gcc.fortran References: Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:+dy63suON4nG8SjC9T6pMnQkxSVgTZ4tYCDKUoD9yJa3yjfmOgF IyWUWfDNlsr8suE7sR1sewGn6e4M0m9r/PjbdV9nPQptCfKCZoE3xYSMkoJlLwP+fGo+UmE r/bTxQoNNTGLi+l54EwlkNLEdEt1qk25msanIPcjZjrMCGJQUpeDGYUB3ql3Xh2YUo/WMlj ggOZb0ttTWtDVyzOFeQCA== UI-OutboundReport: notjunk:1;M01:P0:C8UUEYFqPRY=;1M/gcWnW1XQUNFColTAOVqcsycy oCOQOUxEV1hNUKsuYM/s+KKd0bYHtOrsdPCmsGIjcyfpXpFbS+ZbVZ/LYzeiij75VADPTmhNj haLrde9kDwULUL00SvPzow6U0qdw8qVEjNEIFBMCbq+/u2UMhUWDU8wmbAU//MNN4TGThss+e r8CyJnwTpnYDwKYAyGC2c6sR57pMHTrv+O5ou/4jy+TjjrKG3yHbr5sUzcptjrPY8ikuiPFtE iENz2BVRoj4Yp90A6hk9tBm8LP5n3v9vXMW+W0D/Qkp/35f4hO65XfTIAyoZjedEH2aW/gBxJ AXemZZUZI6ovKsSfKa29j50T+7JDa72feK1dJ4h6E+kOPoawmncg7qdeU+9U5bK0TGYdR5VyU EMfpCJH321DeLp7TODeYvoZmPUKTbSQ/hNPFY78D7oXQfc292HF7h+LpU8rrlylT9iftwlvkV VYNhStmrwHFfWxLk0Hql6Yrdm+hrE2ttli5sA8kaH6YJ42MpO8ZlP+jfZHUNGvz5c0beonufM VivOHRGKFEw5UP0q1pNCsaWaMNCKFBeocqSTTjYJdMtQFLrtHHrKSdaM7YJp6l1f6FV8jGoed YtK19VvyKPQqCRgYpJwh9UZmyYq47HnEiN5fK7IhI4Fb1yVSZ07TBOwHEKz95QfU/+UsSHXA9 RMJPrUa8OOUsimKGjA/dlwH0xg//W5CKtK9pYLv38syrTyquvHFa/WOY+LoWgOxo5dWmhDeMy 5xDoUcX1OVfCpyigtP+bPyOm86oZA96ZRPqkB0nO5McaHba2oqdjrtAGyotVrumt5LlJtDHqJ oD2phxIj8rrpnX7ljDpKcl2BVZdE/nVMWDIKz6Xjsk+vc= X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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: 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 componen= t > of a derived type and the class component has rank > 1, the reason be= ing > that the previous code compared the full size of one side with the si= ze > 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-exp= r > 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 someon= e > 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 > 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 >