http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46271
--- Comment #5 from mrestelli <mrestelli at gmail dot com> --- (In reply to janus from comment #3) > (In reply to mrestelli from comment #0) > > With version B: > > gfortran -fopenmp omp_test.f90 -o omp_test > > omp_test.f90: In function ‘test’: > > omp_test.f90:25:0: error: ‘pf’ not specified in enclosing parallel > > omp_test.f90:23:0: error: enclosing parallel > > What is actually the problem here? That error message looks correct to me, > doesn't it? Janus, you are probably right that version B should not compile. I guess when I posted the bug report I was not sure which was the correct version according to the OpenMP specifications, since fp is a variable (requiring an OpenMP attribute), but it behaves like a subroutine (so, no OpenMP attribute). Clearly however at least one of the two versions should work, hence my pointing out that both alternatives do not work. Well, at least this is my recollection, since it was quite a while ago. As a note, I mention that ifort (version 13.1) accepts both versions, but maybe this is an issue with ifort itself. Regards, Marco Restelli