Article ID: 143083
Article Last Modified on 7/5/2005
/* Compile options needed: None
*/
typedef int Matrix1[4];
typedef int Matrix2[4][4];
void Func1( const Matrix1 ) {}
// Remove const in the following statement to work around
void Func2( const Matrix2 ) {}
void main()
{
Matrix1 a = {1,2,3,4};
Matrix2 b = {1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4};
Func1( a );
Func2( b ); // C2664 here
}
Additional query words: kbVC400bug
Keywords: kbbug kbfix kbvc500fix kbcpponly kbcompiler KB143083