Compiler Error C3011
inline assembly not allowed directly within a parallel region
An omp
parallel region cannot contain inline assembly instructions.
The following sample generates C3011:
// C3011.cpp
// compile with: /openmp
// processor: /x86
int main() {
int n = 0;
#pragma omp parallel
{
_asm mov eax, n // Delete this line to resolve this error.
} // C3011
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for