The information in this article applies to:
SYMPTOMSThe compilers listed above may misinterpret a combination of an enumerated type, a default parameter, and a constructor or function notation cast as a syntax error and may incorrectly generate one of the following: -or- -or- -or-
CAUSE
The C++ compiler incorrectly parses declarations in which an enumerated
type is used as a parameter to either a constructor or a function notation
cast in a default parameter list. If there are other syntax errors in the
declaration line in question, then it is possible that an erroneous error
other than the ones listed might occur. The sample code shown below gives
examples of how to generate these errors.
RESOLUTION
In most cases (such as the examples below), the construction or function
notation cast is not explicitly needed, in which case it can be removed. If
this is not the case, the type cast (as opposed to function notation cast)
syntax for the function should be used instead. For example, the above
functions would be modified to:
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. Sample CodeTEST1.CPP
TEST2.CPP
TEST3.CPP
Additional query words: 8.00 8.00c 9.00
Keywords : kbVC100bug kbVC150bug kbVC400bug kbVC410bug kbVC420bug kbVC500bug kbVC600bug |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |