Skip to content

Commit ce3bb0b

Browse files
authored
Merge pull request #5350 from Rageking8/update-c2433-reference
Update C2433 reference
2 parents 7fbc81b + d014fd8 commit ce3bb0b

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
---
2-
description: "Learn more about: Compiler Error C2433"
32
title: "Compiler Error C2433"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2433"
4+
ms.date: 05/25/2025
55
f1_keywords: ["C2433"]
66
helpviewer_keywords: ["C2433"]
7-
ms.assetid: 7079fedd-6059-4125-82ef-ebe275f1f9d1
87
---
98
# Compiler Error C2433
109

11-
'identifier' : 'modifier' not permitted on data declarations
10+
> '*identifier*': '*modifier*' not permitted on data declarations
1211
1312
The **`friend`**, **`virtual`**, and **`inline`** modifiers cannot be used for data declarations.
1413

1514
## Example
1615

17-
The following sample generates C2433.
16+
The following example generates C2433:
1817

1918
```cpp
2019
// C2433.cpp
21-
class C{};
22-
23-
int main() {
24-
inline C c; // C2433
20+
int main()
21+
{
22+
virtual int i; // C2433
2523
}
2624
```

0 commit comments

Comments
 (0)