The information in this article applies to:
SYMPTOMSWhen an enumerated type is declared in class scope, if it is declared again at global scope, the compiler will not generate an error. However, once redefined, the result of using those enumerated types is unpredictable. RESOLUTIONAn enumerated type should be defined only once within any scope. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSample Code to Demonstrate Problem
REFERENCES"The Annotated C++ Reference Manual" by Ellis and Stroustrup (Jan 1994), section 7.2 Additional query words: kbVC400bug 9.00 9.10 10.10 10.20
Keywords : kbCompiler kbCPPonly kbVC kbVC500bug |
Last Reviewed: April 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |