This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/50570] [4.6/4.7 Regression] Incorrect error for assignment to intent(in) pointer


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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]