https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70535
Bug ID: 70535 Summary: broken nested reductions in openacc parallel regions Product: gcc Version: 6.0 Status: UNCONFIRMED Keywords: openacc Severity: normal Priority: P3 Component: middle-end Assignee: cesar at gcc dot gnu.org Reporter: cesar at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org Target Milestone: --- Target: x86_64-linux-gnu Created attachment 38183 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38183&action=edit nested reductions The attached test case demonstrates how the original reduction variable on the host isn't being updated when the same variable is used in an acc parallel and acc loop reduction. It seems like the private 'acc parallel reduction' variable isn't being remapped within the acc parallel region.