Compiler Error C2618

local classes cannot have base classes

There was an attempt to declare a local class derived from another class. A local class cannot have a base class, even if the base class itself has file scope.

The following is an example of this error:

class A { };
void f()
{
    class B : public A {};   // error
}