Skip to content

Commit 7ce83a1

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C1001, C1020]
1 parent 536c01c commit 7ce83a1

17 files changed

+45
-1
lines changed

docs/error-messages/compiler-errors-1/fatal-error-c1001.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 5736cdb3-22c8-4fad-aa85-d5e0d2b232f4
1010

1111
> INTERNAL COMPILER ERROR(compiler file *file*, line *number*)
1212
13+
## Remarks
14+
1315
The compiler cannot generate correct code for a construct, often due to the combination of a particular expression and an optimization option, or an issue in parsing. If the compiler file listed has a utc or C2 path segment, it is probably an optimization error. If the file has a cxxfe or c1xx path segment, or is msc1.cpp, it is probably a parser error. If the file named is cl.exe, there is no other information available.
1416

1517
You can often fix an optimization problem by removing one or more optimization options. To determine which option is at fault, remove options one at a time and recompile until the error message goes away. The options most commonly responsible are [/Og (Global optimizations)](../../build/reference/og-global-optimizations.md) and [/Oi (Generate Intrinsic Functions)](../../build/reference/oi-generate-intrinsic-functions.md). Once you determine which optimization option is responsible, you can disable it around the function where the error occurs by using the [optimize](../../preprocessor/optimize.md) pragma, and continue to use the option for the rest of the module. For more information about optimization options, see [Optimization best practices](../../build/optimization-best-practices.md).

docs/error-messages/compiler-errors-1/fatal-error-c1002.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: bd6d274a-c7b4-43af-8bf2-23c5e442aa22
1010

1111
> compiler is out of heap space in pass 2
1212
13+
## Remarks
14+
1315
The compiler ran out of dynamic memory space during its second pass, probably due to a program with too many symbols or complex expressions.
1416

1517
### To fix by using the following possible solutions

docs/error-messages/compiler-errors-1/fatal-error-c1003.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 27d2d009-2e0f-41fb-8bfc-372752fbe920
1010

1111
> error count exceeds number; stopping compilation
1212
13+
## Remarks
14+
1315
Errors in the program are too numerous to allow recovery. The compiler must terminate.

docs/error-messages/compiler-errors-1/fatal-error-c1004.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: dbe034b0-6eb0-41b4-a50c-2fccf9e78ad4
1010

1111
> unexpected end of file found
1212
13+
## Remarks
14+
1315
The compiler reached the end of a source file without resolving a construct. The code may be missing one of the following elements:
1416

1517
- A closing brace
@@ -28,6 +30,8 @@ To resolve this error, check for the following:
2830

2931
- A source file does not end with a carriage return and line feed.
3032

33+
## Example
34+
3135
The following sample generates C1004:
3236

3337
```cpp

docs/error-messages/compiler-errors-1/fatal-error-c1005.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 150daf8e-a38a-4669-9c1a-a05b5a1f65ef
1010

1111
> string too big for buffer
1212
13+
## Remarks
14+
1315
A string in a compiler intermediate file overflowed a buffer.
1416

1517
You could get this error when the parameter that you pass to either the [/Fd](../../build/reference/fd-program-database-file-name.md) or [/Yl](../../build/reference/yl-inject-pch-reference-for-debug-library.md) compiler options is greater than 256 bytes.

docs/error-messages/compiler-errors-1/fatal-error-c1007.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 224f7e2c-4522-4e09-b455-8d293bdb799d
1010

1111
> unrecognized flag string in option
1212
13+
## Remarks
14+
1315
The command-line option contains an invalid string. Check the **CL** command line and environment variable for errors.

docs/error-messages/compiler-errors-1/fatal-error-c1008.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 7de729e3-b2ca-4a68-95ab-8a1c920f3f2c
1010

1111
> no input file specified
1212
13+
## Remarks
14+
1315
The compiler was not given a C or C++ source file to compile. Check the **CL** command line and environment variable for filename specifications.

docs/error-messages/compiler-errors-1/fatal-error-c1009.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: dcc8383c-3362-4c47-9c26-25d2451ebd53
1010

1111
> compiler limit : macros nested too deeply
1212
13+
## Remarks
14+
1315
The compiler tried to expand too many macros at the same time. The compiler has a limit of 256 levels of nested macros. Split nested macros into simpler macros.

docs/error-messages/compiler-errors-1/fatal-error-c1012.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ helpviewer_keywords: ["C1012"]
99

1010
> unmatched parenthesis: missing 'character'
1111
12+
## Remarks
13+
1214
The parentheses in a preprocessor directive do not match.
1315

16+
## Example
17+
1418
The following sample generates C1012:
1519

1620
```cpp

docs/error-messages/compiler-errors-1/fatal-error-c1013.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 5514a679-efe7-4055-bdd3-5693ca0c332f
1010

1111
> compiler limit : too many open parentheses
1212
13+
## Remarks
14+
1315
An expression contains too many levels of parentheses in a single expression. Simplify the expression or break it into multiple statements.
1416

1517
Prior to Visual C++ 6.0 Service Pack 3, the limit on nested parenthesis in a single expression was 59. Currently, the limit on nested parenthesis is 256.

0 commit comments

Comments
 (0)