◄Up► ◄Contents► ◄Index► ◄Back► ──────────────────────────────────────────────────────────────────────────── Compiler error C2390 'identifier' : incorrect storage class 'specifier' The storage class was not legal for the specified identifer with global scope. The default storage class for this context was used in place of the illegal class. Correct use of storage classes include: ■ If the identifier is a function, it should be declared with extern storage. ■ If the identifier is a formal parameter or local variable, it should be declared with auto storage. ■ If the identifier is a global variable, it should be declared with no storage class (that is, auto storage). The following example generates this error: register int i; //error void main () { register int j; //OK } -♦-