Compiler Error C2624

local classes cannot be used to declare 'extern' variables

A local class or structure cannot be used to declare extern variables. The following example generates this error:

void main(void)
{
struct C {...};
extern C ac;   //error
}