Compiler Error C2071
'identifier' : illegal storage class
identifier was declared with an invalid storage class.
Example
The following sample generates C2071.
// C2071.cpp
// compile with: /c
struct C {
extern int i; // C2071
};
struct D {
int i; // OK
};
The following sample generates C2071.
// C2071_b.cpp
// compile with: /c
typedef int x(int i) { return i; } // C2071
typedef int x; // OK