ID: Q115706
1.00 1.50 WINDOWS kbtool kbbuglist
The information in this article applies to:
- Microsoft Visual C++ for Windows, versions 1.0 and 1.5
Compiling the source code shown below will generate the following internal compiler error when the /Gsw compiler option is used on the cl command line
fatal error C1001: internal compiler error
(compiler file 'msc1.cpp', line 585)
Compiling the same source file, but adding the /Bd compiler option,
will cause the compiler to generate the error message
DX1020: unhandled exception: Page fault
instead of the internal compiler error.
This problem does not occur when compiling within the Visual Workbench.
Microsoft has confirmed this to be a problem with the C/C++ compiler for MS-DOS, versions 8.0 and 8.0c. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
The following sample code can be used to reproduce this problem.
/* Compile options needed: /c /Gsw (/Bd to see the DX1020 error)
*/
/* NOTE: This code intentionally contains an error */
/* which is necessary to demonstrate the problem */
#include <afx.h>
class CTest{
public:
CTime m_x;
};
CTest test;
BOOL func() {
if (1) {
}
Additional reference words: 8.00 8.00c 1.00 1.50 KBCategory: kbtool kbbuglist KBSubcategory: CPPIss Keywords : kb16bitonly
Last Reviewed: July 23, 1997