Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions docs/error-messages/compiler-errors-2/compiler-error-c7510.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: "Learn about the causes of Compiler error C7510 and how to fix it."
title: "Compiler Error C7510"
description: "Learn about the causes of Compiler error C7510 and how to fix it."
ms.date: 04/21/2021
f1_keywords: ["C7510"]
helpviewer_keywords: ["C7510"]
Expand All @@ -10,10 +10,10 @@ helpviewer_keywords: ["C7510"]
> '*type-name*': use of dependent template name must be prefixed with 'template'\
> '*type-name*': use of dependent type name must be prefixed with 'typename'

In [`/permissive-`](../../build/reference/permissive-standards-conformance.md) mode, the compiler requires the **`template`** keyword to precede a template name when it comes after a dependent [`nested-name-specifier`](../../cpp/scope-resolution-operator.md). Similar rules hold for types qualified by **`typename`**.

## Remarks

In [`/permissive-`](../../build/reference/permissive-standards-conformance.md) mode, the compiler requires the **`template`** keyword to precede a template name when it comes after a dependent [`nested-name-specifier`](../../cpp/scope-resolution-operator.md). Similar rules hold for types qualified by **`typename`**.

Compiler behavior has changed starting in Visual Studio 2017 version 15.8 under [`/permissive-`](../../build/reference/permissive-standards-conformance.md) mode. The compiler requires the **`template`** or **`typename`** keyword to precede a template or type name when it comes after a dependent *`nested-name-specifier`*. For more information, see [Name resolution for dependent types](../../cpp/name-resolution-for-dependent-types.md) and [Templates and name resolution](../../cpp/templates-and-name-resolution.md).

## Examples
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: "Learn about the causes of Compiler error C7536 and how to fix it."
title: "Compiler Error C7536"
description: "Learn about the causes of Compiler error C7536 and how to fix it."
ms.date: 05/03/2021
f1_keywords: ["C7536"]
helpviewer_keywords: ["C7536"]
Expand All @@ -9,6 +9,8 @@ helpviewer_keywords: ["C7536"]

> ifc failed integrity checks. Expected SHA2: '*hash-value*'

## Remarks

The compiler raises C7536 whenever the *`.ifc`* file has been tampered with. The header of the module interface contains an SHA2 hash of the contents below it. On import, the *`.ifc`* file is hashed, then checked against the hash provided in the header. If these don't match, error C7536 is raised:

```Output
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Compiler Error C7553"
description: Compiler Error C7553 description and solution.
description: "Compiler Error C7553 description and solution."
ms.date: 02/22/2022
f1_keywords: ["C7553"]
helpviewer_keywords: ["C7553"]
Expand Down
4 changes: 2 additions & 2 deletions docs/error-messages/compiler-errors-2/compiler-error-c7688.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Compiler error C7688"
description: Compiler error C7688 description and solution.
description: "Compiler error C7688 description and solution."
ms.date: 03/01/2023
f1_keywords: ["C7688"]
helpviewer_keywords: ["C7688"]
Expand All @@ -17,7 +17,7 @@ Compiler error C7688 is new in Visual Studio 2022 version 17.4. In previous comp

## Example

The sample code shows diagnostics generated for non-scalar types in `#pragma omp atomic` constructs.
The example code shows diagnostics generated for non-scalar types in `#pragma omp atomic` constructs.

```cpp
// C7688.cpp
Expand Down
8 changes: 6 additions & 2 deletions docs/error-messages/compiler-errors-2/compiler-error-c7742.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
description: "Learn more about: Compiler Error C7742"
title: "Compiler Error C7742"
ms.date: "07/02/2025"
description: "Learn more about: Compiler Error C7742"
ms.date: 07/02/2025
ai-usage: ai-assisted
f1_keywords: ["C7742"]
helpviewer_keywords: ["C7742"]
Expand All @@ -10,8 +10,12 @@ helpviewer_keywords: ["C7742"]

> *Identifier*: a forward declaration of an enum can only use a simple identifier

## Remarks

The C++ Standard doesn't allow declaring an opaque enumeration using a qualified-id. An opaque enum declaration specifies the name and the underlying type, but doesn't list the enumerators or their values.

## Example

The following example generates C7742:

```cpp
Expand Down