FIX: Incomplete pragma Directive May Cause C1001 Error (139028)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q139028 SYMPTOMS
When you use an incomplete #pragma preprocessor directive, the following
internal compiler error may be generated:
warning C4081: expected '('; found 'newline'
fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 899)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more
information.
While the code is not valid, the compiler should not generate an internal
compiler error. However, the C4081 warning is valid.
RESOLUTION
Use a complete pragma directive. For a listing of valid pragma directives
and their syntax, please consult the Help menu.
STATUSThis bug was corrected in Microsoft Visual C++, version 6.0.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbBug kbfix kbVC600fix KB139028 |
---|
|