I tried using the reduction clause in a parallel region of an openmp enabled fortran code.
I get the following error even tough the variable_x is globally defined and is shared at the begining of the parallel region.
fortcom: Error: xxx.f, line 52: Variables that appear on the FIRSTPRIVATE, LASTPRIVATE, and REDUCTION clauses on a work-sharing directive must have shared scope in the enclosing region [variable_x].
Has anyone dealt with such problems in ifort 10?
Is it a complier bug?