11---
22title : " Compiler Error C3646 | Microsoft Docs"
33ms.custom : " "
4- ms.date : " 11/04/2016 "
4+ ms.date : " 06/14/2018 "
55ms.technology : ["cpp-diagnostics"]
66ms.topic : " error-reference"
77f1_keywords : ["C3646"]
@@ -13,20 +13,27 @@ ms.author: "corob"
1313ms.workload : ["cplusplus"]
1414---
1515# Compiler Error C3646
16- 'specifier' : unknown override specifier
17-
18- The compiler found a token in the position where it expected to find an override specifier, but the token was not recognized by the compiler.
19-
20- For more information, see [ Override Specifiers] ( ../../windows/override-specifiers-cpp-component-extensions.md ) .
21-
22- The following sample generates C3646:
23-
24- ```
25- // C3646.cpp
26- // compile with: /clr /c
27- ref class C {
28- void f() unknown; // C3646
29- // try the following line instead
30- // virtual void f() abstract;
31- };
16+
17+ > 'specifier' : unknown override specifier
18+
19+ ## Remarks
20+
21+ The compiler found a token in the position where it expected to find an override specifier, but the token was not recognized by the compiler.
22+
23+ For example, if the unrecognized * specifier* is ** _ NOEXCEPT** , replace it with the keyword ** noexcept** .
24+
25+ For more information, see [ Override Specifiers] ( ../../windows/override-specifiers-cpp-component-extensions.md ) .
26+
27+ ## Example
28+
29+ The following sample generates C3646 and shows a way to fix it:
30+
31+ ``` cpp
32+ // C3646.cpp
33+ // compile with: /clr /c
34+ ref class C {
35+ void f() unknown; // C3646
36+ // try the following line instead
37+ // virtual void f() abstract;
38+ };
3239```
0 commit comments