The information in this article applies to:
SYMPTOMSWhen you attempt to build the sample code below, you will get an error message similar to the following:
CAUSEThis behavior occurs because you are attempting to access a member of a nested class that has been used as a base class. It is valid to do this. The compiler should not be reporting an error, and, in this case, the error that is being reported is misleading. RESOLUTIONTo work around the problem, you can use a typedef to refer to the nested class that is being used as a base class. This is illustrated in the sample code below. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONSample Code
The following code reproduces the problem:
The following code works around the problem (note the use of the typedef):
Additional query words: kbVC400bug 10.00 10.10 10.20
Keywords : kbCompiler kbCPPonly kbLangCPP kbVC kbVC500bug |
Last Reviewed: February 3, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |