On 8/29/26 1:20 PM, Mikael Morin wrote:
Le 27/08/2026 à 18:50, Jerry D a écrit :
See attached patch. I reworked this one from that posted in the PR some time 
ago.

This is a wrong code of the worst kind because gfortran was silently giving incorrect results.

Regression tested on x86_64.

OK for mainline, we should consider backporting this because of the nature of the error.

Best regards,

Jerry

OK for mainline and backport.

One micro-optimization nit:
+  tmp = TREE_TYPE (gfc_conv_descriptor_data_get (dest));
You may consider using GFC_TYPE_ARRAY_DATAPTR_TYPE (TREE_TYPE (dest)) instead, which avoids creating new tree nodes.

Thanks for the patch.

Your nit incorporated, thanks for review.

The master branch has been updated by Jerry DeLisle <[email protected]>:

https://gcc.gnu.org/g:02e6f6740ae069c9355dcb59d764235465f09a61

commit r17-3769-g02e6f6740ae069c9355dcb59d764235465f09a61
Author: Jerry DeLisle <[email protected]>
Date:   Thu Aug 27 08:59:06 2026 -0700

Jerry

Reply via email to