Skip to content

Commit e8a315a

Browse files
authored
Merge pull request #2065 from corob-msft/cr-fix-1051
Address C2362 typo per 1051, general clean-up
2 parents e436e46 + 343b247 commit e8a315a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/error-messages/compiler-errors-1/compiler-error-c2362.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
title: "Compiler Error C2362"
3-
ms.date: "11/04/2016"
3+
ms.date: "06/03/2019"
44
f1_keywords: ["C2362"]
55
helpviewer_keywords: ["C2362"]
66
ms.assetid: 7aafecbc-b3cf-45a6-9ec3-a17e3f222511
77
---
88
# Compiler Error C2362
99

10-
initialization of 'identifier' is skipped by 'goto label'
10+
> initialization of '*identifier*' is skipped by 'goto *label*'
1111
12-
When compiling with [/Za](../../build/reference/za-ze-disable-language-extensions.md), jumping to the label prevents the identifier from being initialized.
12+
When compiled by using [/Za](../../build/reference/za-ze-disable-language-extensions.md), a jump to the label prevents the identifier from being initialized.
1313

14-
You cannot jump past a declaration with an initializer unless the declaration is enclosed in a block that is not entered, or the variable has already been initialized.
14+
You can only jump past a declaration with an initializer if the declaration is enclosed in a block that isn't entered, or if the variable has already been initialized.
1515

16-
The following sample generates C2326:
16+
The following sample generates C2362:
1717

18-
```
18+
```cpp
1919
// C2362.cpp
2020
// compile with: /Za
2121
int main() {
@@ -27,7 +27,7 @@ label1:;
2727

2828
Possible resolution:
2929

30-
```
30+
```cpp
3131
// C2362b.cpp
3232
// compile with: /Za
3333
int main() {

0 commit comments

Comments
 (0)