https://gcc.gnu.org/g:74a16f356f1213b554124ff30647a4445557d473

commit 74a16f356f1213b554124ff30647a4445557d473
Author: Mikael Morin <[email protected]>
Date:   Thu Nov 12 16:23:02 2026 +0100

    Ajout commentaire.

Diff:
---
 gcc/fortran/trans-descriptor.cc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcc/fortran/trans-descriptor.cc b/gcc/fortran/trans-descriptor.cc
index fc467c99d15b..65176a3b7720 100644
--- a/gcc/fortran/trans-descriptor.cc
+++ b/gcc/fortran/trans-descriptor.cc
@@ -647,6 +647,11 @@ gfc_build_dtype_constructor (tree size, int type, int rank)
   vec<constructor_elt, va_gc> *v = NULL;
 
   tree dtype_type_node = get_dtype_type_node ();
+  /* In the unlimited polymorphic case, the initialization of the element 
length
+     field is omitted.  Otherwise, the field is set to the declared type size.
+     In the polymorphic case (either unlimited or not), the size is not known 
at
+     compile time and the field will have to be set to the actual runtime
+     value.  */
   if (size)
     {
       STRIP_NOPS (size);

Reply via email to