FIX: Global Constants Are Initialized in Reverse Order (313847)
The information in this article applies to:
- Microsoft Visual C++ .NET (2002)
This article was previously published under Q313847 SYMPTOMS Global constants can be initialized in the wrong order if
you use global optimizations (/Og option) and pre-compiled headers.
The program
initializes the constants in the reverse order of how they appear in the code,
which is counter-intuitive and which may cause unexpected results.
RESOLUTION To work around this behavior, disable global optimizations
or compile by using the Disable Optimization option (/Od). STATUSMicrosoft has confirmed that this is a bug in the Microsoft
products that are listed at the beginning of this article.
This bug was corrected in Microsoft Visual C++ .NET (2003).
Modification Type: | Major | Last Reviewed: | 4/11/2003 |
---|
Keywords: | kbfix kbbug kbCompiler kbpending KB313847 |
---|
|