https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62278
Bug ID: 62278 Summary: gfc_check_dependency should also check for TARGET attribute Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: missed-optimization Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: tkoenig at gcc dot gnu.org When playing around with https://gcc.gnu.org/ml/fortran/2014-08/msg00109.html, using gfc_check_dependency (lhs_expr, rhs_expr, false) I saw that for the following, the "P(:)" and "A(:)" expressions are regarded as potentially depending on each other. However, I fail how that should be possible as "A" neither has the TARGET nor the POINTER attribute. integer, save :: A(10)[*] integer, pointer :: P(:) P(:) = A(:)[i] end