Compiler Error C2479

'identifier' : 'allocate( )' is only valid for data items of static extent

The __declspec( allocate()) syntax can only be used for nonstatic objects.