Compiler Error C3010
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Error C3010.
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: