Compiler Error C3644


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at Compiler Error C3644.

function' : cannot compile the function to generate managed code

The presence of some keywords in a function will cause the function to be compiled to native.

The following sample generates C3644:

// C3644.cpp  
// compile with: /clr  
// processor: x86  
void __clrcall Func2(int i) {  
   __asm {}   // C3644