Skip to content

Update C2433 reference #5350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions docs/error-messages/compiler-errors-1/compiler-error-c2433.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
---
description: "Learn more about: Compiler Error C2433"
title: "Compiler Error C2433"
ms.date: "11/04/2016"
description: "Learn more about: Compiler Error C2433"
ms.date: 05/25/2025
f1_keywords: ["C2433"]
helpviewer_keywords: ["C2433"]
ms.assetid: 7079fedd-6059-4125-82ef-ebe275f1f9d1
---
# Compiler Error C2433

'identifier' : 'modifier' not permitted on data declarations
> '*identifier*': '*modifier*' not permitted on data declarations

The **`friend`**, **`virtual`**, and **`inline`** modifiers cannot be used for data declarations.

## Example

The following sample generates C2433.
The following example generates C2433:

```cpp
// C2433.cpp
class C{};

int main() {
inline C c; // C2433
int main()
{
virtual int i; // C2433
}
```