The information in this article applies to:
SYMPTOMSWhen using a bitwise OR operation on a bool reference and compiling with optimizations that include /Og (global optimizations), the resulting executable may generate an access violation. CAUSEThe current implementation of a bool is an 8-bit value. The OR operation with /Og on a bool reference operates on a 32-bit value. RESOLUTIONDo not use bitwise operators with bool references. Use bool values instead. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why MORE INFORMATIONSteps to Reproduce BehaviorCompile with /Og
Additional query words:
Keywords : kbservicepack kbVC600fix kbVS600sp2 kbVS600SP1 kbVS600sp3fix |
Last Reviewed: May 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |