[WARNING]
The specified Storage Class Specifier is not taken in account by the compiler, because it does not apply to an object.
static class A{
public:
int a;
};
Remove the Storage Class Specifier from the class definition and apply it to the instances.
class A{
public:
int a;
};
static A myClassA;