Compiler Error C3658
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

Compiler Error C3658

Error Message

'keyword' : override specifier not allowed with /clr:oldSyntax

An override specifier in the current syntax was used in a compilation enabled for the previous syntax.

The following sample generates C3658:

// C3658.cpp
// compile with: /clr:oldSyntax /c
__gc struct C {
   virtual void f() abstract;   // C3658
};

The following sample demonstrates a possible resolution:

// C3658b.cpp
// compile with: /clr /c
ref struct C {
   virtual void f() abstract;
};
Show:
© 2016 Microsoft