FIX: Application Error If /Og & Virtual Operator Call in LoopLast reviewed: September 18, 1997Article ID: Q131000 |
2.00 2.10
WINDOWS NT
kbtool kbfixlist
The information in this article applies to:
SYMPTOMSAn application error is generated when running a program that meets all these conditions:
CAUSEThe computation of the address of the virtual operator is being lifted out of the loop.
RESOLUTIONUse any one of the following four workarounds:
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 INFORMATION
Sample Code to Reproduce Problem
/* Compile options needed: /Og */class Test { public: virtual int operator <= ( const Test& T ) const {return 1;}};
void main( void ){ long i; for (i=1; i<=3; i++) { Test T; //Work-around 1: Move this line above the for loop. T <= T; //Work-around 2: Comment out this line, uncomment the next. //T.operator<=(T); // Function form of the operator. }}
|
Additional reference words: 2.00 2.10 9.0 9.1 9.00 9.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |