'identifier' : 'naked' can only be applied to non-member function definitions
The naked attribute was applied to a function declaration.
Example
__declspec( naked ) int func(); // error, declaration, not definition __declspec( naked ) int i; // error, i is not a function