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

commit eb1ea82302b99d50e66255e4b6abc123a732fe69
Author: Mikael Morin <[email protected]>
Date:   Thu Nov 12 16:03:35 2026 +0100

    Déplacement (et modification) commentaire

Diff:
---
 gcc/fortran/trans-types.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/fortran/trans-types.cc b/gcc/fortran/trans-types.cc
index 0d05f092851a..889392485248 100644
--- a/gcc/fortran/trans-types.cc
+++ b/gcc/fortran/trans-types.cc
@@ -1808,10 +1808,11 @@ gfc_get_dtype_rank_type (int rank, tree etype)
        size = size_in_bytes (ptype);
       break;
     case BT_CLASS:
+      /* For classes, the element length isn't a known constant, we set it to
+        the declared type length instead if possible.  In the unlimited
+        polymorphic case, that is not possible.  */
       if (VOID_TYPE_P (etype))
        break;
-      /* For classes, the element length isn't a known constant, we set it to
-        the declared type length instead if possible.  */
       /* Fall through.  */
     default:
       size = size_in_bytes (etype);

Reply via email to