Compiler Error C2238

 

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 C2238.

unexpected token(s) preceding 'token'

An incorrect token was found.

The following sample generates C2238:

// C2238.cpp  
// compile with: /c  
class v {  
virtual: int vvv;   // C2238  
};  

Show: