[gcc(refs/users/mikael/heads/refactor_descriptor_v206.01)] Correction erreur compil'

Mikael Morin via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:19cbd0cde2904145f7cd13e006420a1d26daf4f7

commit 19cbd0cde2904145f7cd13e006420a1d26daf4f7
Author: Mikael Morin <[email protected]>
Date:   Fri Aug 21 22:02:41 2026 +0200

    Correction erreur compil'

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 7f1ee347e457..3c835483164b 100644
--- a/gcc/fortran/trans-descriptor.cc
+++ b/gcc/fortran/trans-descriptor.cc
@@ -935,7 +935,7 @@ is_polymorphic_expr (tree expr, tree *class_ref = nullptr)
 	       && GFC_CLASS_TYPE_P (TREE_TYPE (TREE_TYPE (e))))
 	{
 	  if (class_ref != nullptr)
-	    class_ref = build_fold_indirect_ref_loc (input_location, e);
+	    *class_ref = build_fold_indirect_ref_loc (input_location, e);
 	  return true;
 	}
       else if (GFC_CLASS_TYPE_P (TREE_TYPE (e)))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.