Article ID: 168373
Article Last Modified on 10/17/2003
/*
Compile options: None
*/
class Base
{
public:
class Common
{
public:
Common(){};
};
class Derived : public Common
{
public:
Derived() {}
Derived(int n) {}
};
Base( const Common &theCommon) {}
};
int main(void)
{
Base B1(Base::Derived()); //C2065 here
// Workaround: Comment the above line
// Uncomment the following lines
// Base::Derived D ;
// Base B1(D) ;
return 0;
}
Keywords: kberrmsg kbbug kbfix kbvc600fix kbcode KB168373