Skip to content

Commit 7d2ecef

Browse files
Merge pull request #5655 from Rageking8/structure-error-references-in-range-c3031-c3050
Structure error references in range [C3031, C3050]
2 parents 3f3fb92 + e879c5d commit 7d2ecef

20 files changed

+156
-98
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c3031.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3031"
32
title: "Compiler Error C3031"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3031"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3031"]
66
helpviewer_keywords: ["C3031"]
7-
ms.assetid: 7e621e7e-eda7-45b5-8836-29599cd05255
87
---
98
# Compiler Error C3031
109

11-
'var' : variable in 'reduction' clause must have scalar arithmetic type
10+
> 'var' : variable in 'reduction' clause must have scalar arithmetic type
11+
12+
## Remarks
1213

1314
A variable of the wrong type was passed to a reduction clause.
1415

15-
The following sample generates C3031:
16+
## Example
17+
18+
The following example generates C3031:
1619

1720
```cpp
1821
// C3031.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3032.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3032"
32
title: "Compiler Error C3032"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3032"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3032"]
66
helpviewer_keywords: ["C3032"]
7-
ms.assetid: 6a92bd8e-319f-4a99-aef4-a9021f6f9928
87
---
98
# Compiler Error C3032
109

11-
'var' : variable in 'clause' clause cannot have incomplete type 'type'
10+
> 'var' : variable in 'clause' clause cannot have incomplete type 'type'
11+
12+
## Remarks
1213

1314
Types passed to certain clauses must be fully visible to the compiler.
1415

15-
The following sample generates C3032:
16+
## Example
17+
18+
The following example generates C3032:
1619

1720
```cpp
1821
// C3032.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3033.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3033"
32
title: "Compiler Error C3033"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3033"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3033"]
66
helpviewer_keywords: ["C3033"]
7-
ms.assetid: 8628b6bb-a650-4ed2-af13-57acd2f7ddbb
87
---
98
# Compiler Error C3033
109

11-
'var' : variable in 'clause' clause cannot have const-qualified type
10+
> 'var' : variable in 'clause' clause cannot have const-qualified type
11+
12+
## Remarks
1213

1314
Values passed to certain clauses cannot be **`const`** variables.
1415

15-
The following sample generates C3033:
16+
## Example
17+
18+
The following example generates C3033:
1619

1720
```cpp
1821
// C3033.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3034.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3034"
32
title: "Compiler Error C3034"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3034"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3034"]
66
helpviewer_keywords: ["C3034"]
7-
ms.assetid: 49db8bac-2720-4622-94e3-7988f1603fa3
87
---
98
# Compiler Error C3034
109

11-
OpenMP 'directive1' directive cannot be directly nested within 'directive2' directive
10+
> OpenMP 'directive1' directive cannot be directly nested within 'directive2' directive
11+
12+
## Remarks
1213

1314
Some directives cannot be nested. To fix this error, you can merge the statements of both directives into the block of one directive, or you can construct consecutive directives.
1415

15-
The following sample generates C3034:
16+
## Example
17+
18+
The following example generates C3034:
1619

1720
```cpp
1821
// C3034.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3035.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3035"
32
title: "Compiler Error C3035"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3035"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3035"]
66
helpviewer_keywords: ["C3035"]
7-
ms.assetid: af34fad2-2b45-42d0-a9ff-04eab3e91c37
87
---
98
# Compiler Error C3035
109

11-
OpenMP 'ordered' directive must bind directly to a 'for' or 'parallel for' directive with the 'ordered' clause
10+
> OpenMP 'ordered' directive must bind directly to a 'for' or 'parallel for' directive with the 'ordered' clause
11+
12+
## Remarks
1213

1314
An ordered clause was ill formed.
1415

15-
The following sample generates C3035:
16+
## Example
17+
18+
The following example generates C3035:
1619

1720
```cpp
1821
// C3035.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3036.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3036"
32
title: "Compiler Error C3036"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3036"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3036"]
66
helpviewer_keywords: ["C3036"]
7-
ms.assetid: 10c6993e-bc42-4a07-85c7-cdc34ac30906
87
---
98
# Compiler Error C3036
109

11-
'operator' : invalid operator token in OpenMP 'reduction' clause
10+
> 'operator' : invalid operator token in OpenMP 'reduction' clause
11+
12+
## Remarks
1213

1314
A [reduction](../../parallel/openmp/reference/openmp-clauses.md#reduction) clause was not specified correctly.
1415

15-
The following sample generates C3036:
16+
## Example
17+
18+
The following example generates C3036:
1619

1720
```cpp
1821
// C3036.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3037.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3037"
32
title: "Compiler Error C3037"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3037"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3037"]
66
helpviewer_keywords: ["C3037"]
7-
ms.assetid: 9ba8a890-d3c7-4cce-93c5-d358e2bfad28
87
---
98
# Compiler Error C3037
109

11-
'var' : variable in 'reduction' clause must be shared in enclosing context
10+
> 'var' : variable in 'reduction' clause must be shared in enclosing context
11+
12+
## Remarks
1213

1314
A variable specified in a [reduction](../../parallel/openmp/reference/openmp-clauses.md#reduction) clause may not be private to each thread in the context.
1415

15-
The following sample generates C3037:
16+
## Example
17+
18+
The following example generates C3037:
1619

1720
```cpp
1821
// C3037.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3038.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3038"
32
title: "Compiler Error C3038"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3038"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3038"]
66
helpviewer_keywords: ["C3038"]
7-
ms.assetid: 140ada3e-5636-43ef-a4ee-22a9f66a771f
87
---
98
# Compiler Error C3038
109

11-
'var' : variable in 'private' clause cannot be a reduction variable in enclosing context
10+
> 'var' : variable in 'private' clause cannot be a reduction variable in enclosing context
11+
12+
## Remarks
1213

1314
Variables that appear in the [reduction](../../parallel/openmp/reference/openmp-clauses.md#reduction) clause of a parallel directive cannot be specified in a [private](../../parallel/openmp/reference/openmp-clauses.md#private-openmp) clause on a work-sharing directive that binds to the parallel construct.
1415

15-
The following sample generates C3038:
16+
## Example
17+
18+
The following example generates C3038:
1619

1720
```cpp
1821
// C3038.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3039.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3039"
32
title: "Compiler Error C3039"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3039"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3039"]
66
helpviewer_keywords: ["C3039"]
7-
ms.assetid: 02776f16-f57a-4ffd-b7f7-9c696b633e08
87
---
98
# Compiler Error C3039
109

11-
'var' : index variable in OpenMP 'for' statement cannot be a reduction variable
10+
> 'var' : index variable in OpenMP 'for' statement cannot be a reduction variable
11+
12+
## Remarks
1213

1314
An index variable is implicitly private, so the variable cannot be used in a [reduction](../../parallel/openmp/reference/openmp-clauses.md#reduction) clause in the enclosing [parallel](../../parallel/openmp/reference/openmp-directives.md#parallel) directive.
1415

1516
## Example
1617

17-
The following sample generates C3039:
18+
The following example generates C3039:
1819

1920
```cpp
2021
// C3039.cpp

docs/error-messages/compiler-errors-2/compiler-error-c3040.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C3040"
32
title: "Compiler Error C3040"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C3040"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C3040"]
66
helpviewer_keywords: ["C3040"]
7-
ms.assetid: 29e857ac-74f0-4ec6-becf-9026e38c160e
87
---
98
# Compiler Error C3040
109

11-
'var' : type of variable in 'reduction' clause is incompatible with reduction operator 'operator'
10+
> 'var' : type of variable in 'reduction' clause is incompatible with reduction operator 'operator'
11+
12+
## Remarks
1213

1314
A variable in a [reduction](../../parallel/openmp/reference/openmp-clauses.md#reduction) clause cannot be used with the reduction operator.
1415

15-
The following sample generates C3040:
16+
## Example
17+
18+
The following example generates C3040:
1619

1720
```cpp
1821
// C3040.cpp

0 commit comments

Comments
 (0)