This documentation is archived and is not being maintained.

Compiler Error C3010

Error Message

'label' : jump out of OpenMP structured block not allowed

Code cannot jump into or out of an OpenMP block.

The following sample generates C3010:

// C3010.c
// compile with: /openmp
int main() {
   #pragma omp parallel 
   {
      #pragma omp parallel
      {
         goto lbl3;
      }
   }
   lbl3:;   // C3010
}
Show: