Compiler Error C3418

 

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

access specifier 'specifier' is not supported

A CLR access specifier was specified incorrectly. For more information, see Type and Member Visibility.

The following sample generates C3418.

// C3418.cpp  
// compile with: /clr /c  
ref struct m {  
internal public:   // C3418  
   void test(){}  
};  
  
ref struct n {  
internal:   // OK  
   void test(){}  
};  

Show: