FIX: Using Referenced Integer to Access Array Generates CXX0034 (168430)
The information in this article applies to:
- The Integrated Debugger, when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.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 Q168430 SYMPTOMS
The Visual C++ debugger generates the following error while using a
referenced integer to access array.
Error: CXX0034: types incompatible with operator
The MORE INFORMATION section below contains a sample showing this behavior.
RESOLUTION
The workaround is not to use referenced integer a[i] to access array as
shown in the sample. Use index value instead, as a[1].
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products
listed at the beginning of this article.
This problem was corrected in Microsoft Visual C++ .NET.
Modification Type: | Major | Last Reviewed: | 12/2/2003 |
---|
Keywords: | kbBug kbDebug kberrmsg kbfix kbide kbNoUpdate KB168430 |
---|
|