BUG: Internal Compiler Error C1001 When You Call __assume() (259244)
The information in this article applies to:
- Microsoft C/C++ Compiler (CL.EXE)
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q259244 SYMPTOMS
When a function that expects STL::string as a reference is passed as an input argument to the __assume function, you may get the following error message:
repro.cpp(18): fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'E:\8447\vc98\p2\src\P2\main.c', line 494)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more information.
Please refer to the "More Information" section for the sample code that reproduces the problem.
RESOLUTION
Use one of the following two methods to work around this problem:
- Construct a temporary STL::string object and pass this object as a reference to the function (see workaround 1 in the sample code).
- Introduce a temporary variable to store the return value of the function, which expects STL::string as reference (see workaround 2 in the sample code).
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbBug kbnofix KB259244 |
---|
|