The information in this article applies to:
SYMPTOMSThe C/C++ compiler incorrectly generates a C2664 error when attempting to implicitly convert from a typedef non-constant array type to a constant array type. The compiler reports an error that indicates a conversion from a constant array type to a non-constant array type. The following error message is reported by the compiler if a non-constant integer array type is used: The # is the line number where the error occured. RESOLUTIONTo work around the problem, typedef a constant array type instead of using the keyword 'const' together with the typedef non-constant array type. An example is shown in the Sample Code section in this article. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Visual C++, 32-bit Edition, version 4.0. MORE INFORMATIONSample Code
Additional query words: 2.00 9.00 buglist2.00
Keywords : |
Last Reviewed: January 20, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |