Skip to content

Commit 992a13a

Browse files
authored
Merge pull request MicrosoftDocs#911 from corob-msft/cr-c3646
Add an example to C3646 that shows up in 15.8 compilers.
2 parents 7467a54 + e41fd0b commit 992a13a

1 file changed

Lines changed: 24 additions & 17 deletions

File tree

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Compiler Error C3646 | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "11/04/2016"
4+
ms.date: "06/14/2018"
55
ms.technology: ["cpp-diagnostics"]
66
ms.topic: "error-reference"
77
f1_keywords: ["C3646"]
@@ -13,20 +13,27 @@ ms.author: "corob"
1313
ms.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

Comments
 (0)