https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128976
--- Comment #9 from Steve Kargl <kargl at gcc dot gnu.org> ---
We seem to have a new code path to some fairly old code.
This copy-n-paste (so whitespace corruption?!) allows
Juergen's code to compile.
diff --git a/gcc/fortran/expr.cc b/gcc/fortran/expr.cc
index d31c807b958..6f5833d13ac 100644
--- a/gcc/fortran/expr.cc
+++ b/gcc/fortran/expr.cc
@@ -6964,7 +6964,7 @@ gfc_check_vardef_context (gfc_expr* e, bool pointer, bool
alloc_obj,
name, context, &e->where);
return false;
}
- if (!pointer && !is_pointer && !sym->attr.pointer)
+ if (!pointer && !is_pointer && !sym->attr.pointer && !sym->attr.target)
{
if (context)
gfc_error ("Dummy argument %qs with INTENT(IN) in variable"
I need to remember how I do bisection with git to find the guilty
party.