This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/25396] Operator overloading for array-valued functions gets shape incorrectly
- From: "eedelman at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Dec 2005 20:57:56 -0000
- Subject: [Bug fortran/25396] Operator overloading for array-valued functions gets shape incorrectly
- References: <bug-25396-11659@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from eedelman at gcc dot gnu dot org 2005-12-29 20:57 -------
I think this simple one-liner fixes the bug:
Index: interface.c
===================================================================
--- interface.c (revision 109139)
+++ interface.c (working copy)
@@ -1718,6 +1718,7 @@ gfc_extend_expr (gfc_expr * e)
e->value.function.actual = actual;
e->value.function.esym = NULL;
e->value.function.isym = NULL;
+ e->value.function.name = NULL;
if (gfc_pure (NULL) && !gfc_pure (sym))
{
but because of PR 22607, I can't test it properly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25396