'identifier' : illegal static data member in locally defined class
A member of a class, structure, or union with local scope is declared static.
Example
void func( void ) { class A { static int i; // error, i is local to func }; }; class B { static int i; // OK };