------- Comment #2 from jakub at gcc dot gnu dot org 2007-07-02 12:04 ------- If omp_get_nested() returns .false. (it doesn't have to, e.g. try running the program with OMP_NESTED=1 in env), then it really should print 2 2 2 2 because only the outer parallel is parallelized and in the inner parallel omp_get_thread_num () must always return 0. This bug has been fixed recently though, see PR32362.
*** This bug has been marked as a duplicate of 32362 *** -- jakub at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32551