[Bug fortran/50570] [4.6/4.7 Regression] Incorrect error for assignment to intent(in) pointer
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Oct 9 20:32:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50570
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |janus at gcc dot gnu.org
--- Comment #4 from janus at gcc dot gnu.org 2011-10-09 20:31:34 UTC ---
How about this?
Index: gcc/fortran/expr.c
===================================================================
--- gcc/fortran/expr.c (revision 179723)
+++ gcc/fortran/expr.c (working copy)
@@ -4635,7 +4635,7 @@ gfc_check_vardef_context (gfc_expr* e, bool pointe
sym->name, context, &e->where);
return FAILURE;
}
- if (!pointer && !is_pointer)
+ if (!pointer && !sym->attr.pointer)
{
if (context)
gfc_error ("Dummy argument '%s' with INTENT(IN) in variable"
More information about the Gcc-bugs
mailing list