We recommend using Visual Studio 2017

Compiler Error C2433


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2433.

identifier' : 'modifier' not permitted on data declarations

The friend, virtual, and inline modifiers cannot be used for data declarations.

The following sample generates C2433.

// C2433.cpp  
class C{};  
int main() {  
   inline C c;   // C2433