Share via


Compiler Error C2720

'identifier' : 'specifier' storage-class specifier illegal on members

The storage class cannot be used on class members.

Example

  struct S
{
   static int i;
};
static S::i;   // error