FIX: Fatal Error C1001: Compiler File MSC1.CPP Line 1056Last reviewed: September 18, 1997Article ID: Q123803 |
2.00
WINDOWS NT
kbtool kbfixlist
The information in this article applies to:
The Microsoft C/C++ Compiler (CL.EXE), included with - Microsoft Visual C++, 32-bit Edition, version 2.0
SYMPTOMSWhen compiling the Sample Code below, the compiler gives the following fatal error message:
test.cpp(14) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1056) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information RESOLUTIONSee the workaround embedded in the Sample Code section of this article.
STATUSMicrosoft 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.
MORE INFORMATIONThe sample code below can be used to reproduce the compiler error.
Sample Code to Reproduce Problem
/* Compile options needed: none */ #include <iostream.h>template <class T> class genvec3d { }; template <class T> ostream& operator<< (ostream& o, const genvec3d<T>& p) { return o;} class ray { public: genvec3d<float> origin; ray(){} friend int operator<<(ostream& o, ray& r) /* The following line causes compiler Error */ { o << origin; return 1; } /* To work around the problem, change the line above into a comment and change the following line to an executed line of code. */ /* { o << r.origin; return 1; } */ }; |
Additional reference words: 9.00 2.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |