This documentation is archived and is not being maintained.

Compiler Error C2425

Error Message

'token' :non-constant expression in 'context'

The token forms part of a non-constant expression in this context.

The following sample generates C2425:

// C2425.cpp
// processor: x86
int main() {
   int i = 3;
   __asm {
      mov eax, [ebp - i]   // C2425
      mov eax, [ebp - 3]   // OK
   }
}
Show: