Compiler Error C2490

'keyword' not allowed in function with 'naked' attribute

A function defined as naked cannot use structured exception handling.

The following is an example of this error:

__declspec( naked ) int func()
{
   __try{}     // error, structured exception handling
}