The information in this article applies to:
SYMPTOMSIn the sample code in this article, class C2 is derived from C1, and contains nested class S2, which is derived from nested class S1, declared in class C1. Compiling the sample code results in the following compiler error:
RESOLUTIONDeclare nested class C1::S1 as public. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. MORE INFORMATIONReferencing nested class S1 inside of the class C2 declaration does not create a problem, but deriving from it does. Also note that you have to include the base class name for the declaration of the derived nested class (C1::S1). That should not be required, but omitting to do so prevents the compiler from recognizing the nested class from the base class as a valid class name. Sample Code
Additional query words: kbVC400bug 8.00 8.00c 9.00 10.00 10.10 10.20 buglist1.00 buglist1.50 buglist1.51 buglist2.00 buglist7.00
Keywords : kbCompiler kbCPPonly kbVC kbVC500bug |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |