Compiler Error C2423
'number' : illegal scale
Inline assembly code uses a number other than 1, 2, 4, or 8 to scale a register.
The following sample generates C2423:
// C2423.cpp
// processor: x86
int main() {
_asm {
lea EAX, [EAX*3] // C2423
lea EAX, [EAX+EAX*2] // OK
}
}
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