Export (0) Print
Expand All
Expand Minimize

Compiler Error C2071

'identifier' : illegal storage class

identifier was declared with an invalid storage class.

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

Community Additions

ADD
Show:
© 2014 Microsoft