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).

## Example

The following example generates C2290:

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

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