+2019-10-13 Damian Rouson <damain@sourceryinstitue.org>
+
+ PR fortran/91513
+ * resolve.c (resolve_ordinary_assign): Improved error message.
+
2019-10-13 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/90297
"component in a PURE procedure",
&rhs->where);
else
- gfc_error ("The impure variable at %L is assigned to "
- "a derived type variable with a POINTER "
- "component in a PURE procedure (12.6)",
+ /* F2008, C1283 (4). */
+ gfc_error ("In a pure subprogram an INTENT(IN) dummy argument "
+ "shall not be used as the expr at %L of an intrinsic "
+ "assignment statement in which the variable is of a "
+ "derived type if the derived type has a pointer "
+ "component at any level of component selection.",
&rhs->where);
return rval;
}
+2019-10-13 Damian Rouson <damain@sourceryinstitue.org>
+
+ PR fortran/91513
+ * gfortran.dg/impure_assignment_2.f90: Update dg-error regex.
+
2019-10-13 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/92017
PURE FUNCTION give_next3(node)
TYPE(node_type), intent(in) :: node
TYPE(node_type) :: give_next
- give_next = node ! { dg-error "impure variable" }
+ give_next = node ! { dg-error "pure subprogram" }
END FUNCTION
END MODULE pr20863