[gcc(refs/users/mikael/heads/refactor_descriptor_v05)] Correction régression class_to_type_2.f90
Mikael Morin
mikael@gcc.gnu.org
Fri Jun 13 14:45:15 GMT 2025
https://gcc.gnu.org/g:245e9b5b8836ecc1c5540b783182ab7d685d6cef
commit 245e9b5b8836ecc1c5540b783182ab7d685d6cef
Author: Mikael Morin <mikael@gcc.gnu.org>
Date: Fri Feb 14 17:23:47 2025 +0100
Correction régression class_to_type_2.f90
Diff:
---
gcc/fortran/trans-array.cc | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/gcc/fortran/trans-array.cc b/gcc/fortran/trans-array.cc
index 51e5bcd2c281..75a41a38ea12 100644
--- a/gcc/fortran/trans-array.cc
+++ b/gcc/fortran/trans-array.cc
@@ -8266,9 +8266,11 @@ gfc_set_delta (gfc_loopinfo *loop)
gfc_ss_type ss_type;
ss_type = ss->info->type;
- if (ss_type != GFC_SS_SECTION
- && ss_type != GFC_SS_COMPONENT
- && ss_type != GFC_SS_CONSTRUCTOR)
+ if (!(ss_type == GFC_SS_SECTION
+ || ss_type == GFC_SS_COMPONENT
+ || ss_type == GFC_SS_CONSTRUCTOR
+ || (ss_type == GFC_SS_FUNCTION
+ && gfc_is_class_array_function (ss->info->expr))))
continue;
info = &ss->info->data.array;
More information about the Gcc-cvs
mailing list