https://gcc.gnu.org/g:afe27849b59213d9284a2749fb6d88a8a2996436

commit afe27849b59213d9284a2749fb6d88a8a2996436
Author: Mikael Morin <[email protected]>
Date:   Fri Oct 3 18:01:43 2025 +0200

    Correction régression pointer_remapping_6.f08

Diff:
---
 gcc/fortran/trans-descriptor.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/fortran/trans-descriptor.cc b/gcc/fortran/trans-descriptor.cc
index 0c33ea20991c..6491ac86703c 100644
--- a/gcc/fortran/trans-descriptor.cc
+++ b/gcc/fortran/trans-descriptor.cc
@@ -2008,7 +2008,7 @@ gfc_conv_remap_descriptor (stmtblock_t *block, tree dest, 
int dest_rank,
                           tree src, bool contiguous_src, gfc_array_ref *ar)
 {
   gcc_assert (GFC_BYTES_STRIDES_ARRAY_TYPE_P (TREE_TYPE (dest))
-             == GFC_BYTES_STRIDES_ARRAY_TYPE_P (TREE_TYPE (src)));
+             || !GFC_BYTES_STRIDES_ARRAY_TYPE_P (TREE_TYPE (src)));
 
   /* Set dtype.  */
   gfc_conv_descriptor_dtype_set (block, dest,

Reply via email to