FIX: C1001 Error Compiling Naked Function with /Og and /G5 (122302)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Professional Edition 2.0
This article was previously published under Q122302 SYMPTOMS
Compiling a function with the __declspec(naked) modifier, but without an
__asm block for the epilog code, and using the /Og and /G5 switches,
results in the following error:
fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'l:\b_bld\c2\P2\main.c', line 374)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more
information
RESOLUTION
Implement a epilog code block in your function.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This problem was fixed in Microsoft
Visual C++, 32-bit Edition, version 4.0.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbbug kbfix KB122302 |
---|
|