On Fri, Apr 08, 2016 at 09:40:54AM +0200, Jakub Jelinek wrote: > So, you can do all the checking there. Say on OMP_CLAUSE_REDUCTION > for the ORT_ACC_PARALLEL check the flags if they include GOVD_PRIVATE > or GOVD_FIRSTPRIVATE, if yes, complain. Also check if GOVD_MAP is included,
Though, void f1 (int sum) { #pragma acc parallel reduction(+:sum) firstprivate(sum) ; } void f2 (int sum) { #pragma acc parallel reduction(+:sum) private(sum) ; } is already rejected in the FE, so not sure why you want to deal with that. Jakub