Export (0) Print
Expand All
Expand Minimize

Compiler Error C3658

'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;
};

Community Additions

ADD
Show:
© 2015 Microsoft