File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
docs/error-messages/compiler-errors-1 Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- description : " Learn more about: Compiler Error C2433"
3
2
title : " Compiler Error C2433"
4
- ms.date : " 11/04/2016"
3
+ description : " Learn more about: Compiler Error C2433"
4
+ ms.date : 05/25/2025
5
5
f1_keywords : ["C2433"]
6
6
helpviewer_keywords : ["C2433"]
7
- ms.assetid : 7079fedd-6059-4125-82ef-ebe275f1f9d1
8
7
---
9
8
# Compiler Error C2433
10
9
11
- ' identifier' : 'modifier' not permitted on data declarations
10
+ > ' * identifier* ' : '* modifier* ' not permitted on data declarations
12
11
13
12
The ** ` friend ` ** , ** ` virtual ` ** , and ** ` inline ` ** modifiers cannot be used for data declarations.
14
13
15
14
## Example
16
15
17
- The following sample generates C2433.
16
+ The following example generates C2433:
18
17
19
18
``` cpp
20
19
// C2433.cpp
21
- class C {};
22
-
23
- int main () {
24
- inline C c; // C2433
20
+ int main ()
21
+ {
22
+ virtual int i; // C2433
25
23
}
26
24
```
You can’t perform that action at this time.
0 commit comments