The information in this article applies to:
SYMPTOMSAttempting to call a class constructor using a reference to a two dimensional array of objects will cause the compiler to incorrectly treat the array as a two dimensional array of references. In the sample below, the following errors will be incorrectly generated:
CAUSEThe compiler is interpreting
as if it was written:
It is not legal in C++ to use a pointer to a reference, so an array
of references is also not legal.
STATUSMicrosoft has confirmed this to be a bug in the C/C++ compiler for MS-DOS, versions 7.0, 8.0, and 8.0c and the 32-bit C/C++ compiler, version 8.0. This problem was corrected in compiler version 9.0, included with Visual C++ version 2.0. MORE INFORMATIONThe following code can be used to demonstrate this problem. Sample Code
Additional query words: 7.00 8.00 8.00c 1.00 1.50
Keywords : kbCompiler kbCPPonly kbVC |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |