Skip to content
Open
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
21 changes: 18 additions & 3 deletions docs/error-messages/compiler-errors-1/compiler-error-c2290.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,29 @@
---
title: "Compiler Error C2290"
description: "Learn more about: Compiler Error C2290"
ms.date: 11/04/2016
ms.date: 08/23/2025
f1_keywords: ["C2290"]
helpviewer_keywords: ["C2290"]
---
# Compiler Error C2290

> C++ asm syntax ignored. Use __asm.
> C++ 'asm' syntax ignored. Use __asm.
## Remarks

The **`asm`** syntax is reserved for future use.
The **`asm`** syntax is reserved for future use, try [`__asm`](../../assembler/inline/asm.md) instead. For more information, see [Inline Assembler](../../assembler/inline/inline-assembler.md).
Copy link

Copilot AI Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Consider adding a space after the comma for better readability: 'reserved for future use. Try [__asm]...' instead of 'reserved for future use, try [__asm]...'

Copilot uses AI. Check for mistakes.


## Example

The following example generates C2290:

```cpp
// C2290.cpp
// processor: x86

int main()
{
asm("nop"); // C2290
__asm nop // OK
}
```