Compiler Error C3671

 

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

function_1' : function does not override 'function_2'

When using explicit override syntax, the compiler generates an error if a function is not overridden. See Explicit Overrides for more information.

The following sample generates C3671.

// C3671.cpp  
// compile with: /clr /c  
ref struct S {  
   virtual void f();  
};  
  
ref struct S1 : S {  
   virtual void f(int) new sealed = S::f;   // C3671  
   virtual void f() new sealed = S::f;  
};  

Show: