annotate docs/ccguide/errors.appendix @ 691:ddf512f635d2

Ever so closer
author boisy
date Mon, 30 Dec 2002 03:52:24 +0000
parents 497d17b4b264
children c8fcb9426d8b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
1 <appendix>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
2 <title>Compiler Generated Error Messages</title>
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
3 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
4 Below is a list of the error messages that the C compiler generates,
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
5 and, if applicable, probable causes and K &amp; R Appendix A section
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
6 number (in parenthesis) to see for more specific information.
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
7 </para>
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
8 <variablelist>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
9 <varlistentry><term>already a local variable</term>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
10 <listitem>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
11 <para>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
12 Variable has already been declared at the current block level.
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
13 (8.1, 9.2)
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
14 </para>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
15 </listitem>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
16 </varlistentry>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
17
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
18 <varlistentry><term>argument : &lt;text&gt;</term>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
19 <listitem>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
20 <para>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
21 Error from preprocessor. Self-explanatory. Most common cause
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
22 of this error is not being able to find an include file.
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
23 </para>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
24 </listitem>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
25 </varlistentry>
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
26
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
27 <varlistentry><term>argument error</term>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
28 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
29 <para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
30 Function argument declared as type struct, union or function.
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
31 Pointers to such types, however are allowed. (10.1)
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
32 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
33 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
34 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
35
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
36 <varlistentry><term>argument storage</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
37 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
38 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
39 Function arguments may only be declared as storage class
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
40 register. (10.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
41 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
42 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
43 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
44
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
45 <varlistentry><term>bad character</term>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
46 <listitem>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
47 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
48 A character not in the C character set (probably a control
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
49 char) was encountered in the source file. (2)
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
50 </para>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
51 </listitem>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
52 </varlistentry>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
53
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
54 <varlistentry><term>both must be integral</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
55 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
56 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
57 &gt;&gt; and &lt;&lt; operands cannot be FLOAT or DOUBLE. (7.5)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
58 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
59 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
60 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
61
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
62 <varlistentry><term>break error</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
63 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
64 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
65 The break statement is allowed only inside a while, do, for or
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
66 switch block. (9.8)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
67 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
68 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
69 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
70
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
71 <varlistentry><term>can't take address</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
72 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
73 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
74 &amp; operator not allowed in a register variable. Operand must
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
75 otherwise be an lvalue. (7.2)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
76 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
77 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
78 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
79
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
80 <varlistentry><term>cannot cast</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
81 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
82 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
83 Type result of cast cannot be FUNCTION or ARRAY. (7.2, 8.7)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
84 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
85 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
86 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
87
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
88 <varlistentry><term>cannot evaluate size</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
89 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
90 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
91 Could not determine size from declaration or initializer.
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
92 (8.6, 14.3)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
93 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
94 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
95 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
96
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
97 <varlistentry><term>cannot initialize</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
98 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
99 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
100 Storage class or type does not allow variable to be
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
101 initialized. (8.6)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
102 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
103 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
104 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
105
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
106 <varlistentry><term>compiler trouble</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
107 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
108 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
109 Compiler detedted something it couldn't handle. Try compiling
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
110 the program again. If this error still occurs, contact
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
111 Microware.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
112 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
113 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
114 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
115
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
116 <varlistentry><term>condition needed</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
117 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
118 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
119 While, do, for, switch and if statements require a condition
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
120 expression. (9.3)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
121 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
122 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
123 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
124
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
125 <varlistentry><term>constant expression required</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
126 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
127 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
128 Initializer expressions for statis or external variables cannot
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
129 reference variables. They may, however, refer to the address
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
130 of a previously declared variable. This installation allows no
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
131 initializer expressions unless all operands are of type INT or
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
132 CHAR (8.6)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
133 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
134 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
135 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
136
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
137 <varlistentry><term>constant overflow</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
138 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
139 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
140 Input numeric constant was too large for the implied or
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
141 explicit type. (2.6, [PDP-11])
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
142 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
143 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
144 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
145
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
146 <varlistentry><term>constant required</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
147 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
148 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
149 Variables are not allowed for array dimensions or cases. (8.3,
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
150 8.7, 9.7)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
151 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
152 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
153 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
154
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
155 <varlistentry><term>continue error</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
156 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
157 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
158 The continue statement is allowed only inside a while, do, or
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
159 for block. (9.9)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
160 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
161 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
162 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
163
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
164 <varlistentry><term>declaration mismatch</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
165 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
166 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
167 This declaration conflicts with a previous one. This is
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
168 typically caused by declaring a function to return a non-integer
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
169 type after a reference has been made to the function.
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
170 Depending on the line structure of the declaration block, this
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
171 error may be reported on the line following the erroneous
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
172 declaration. (11, 11.1, 11.2)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
173 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
174 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
175 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
176
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
177 <varlistentry><term>divide by zero</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
178 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
179 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
180 Divide by zero occurred when evaluating a constant expression.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
181 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
182 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
183 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
184
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
185 <varlistentry><term>? expected</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
186 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
187 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
188 ? is any character that was expected to appear here. Missing
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
189 semicolons or braces cause this error.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
190 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
191 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
192 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
193
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
194 <varlistentry><term>expression missing</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
195 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
196 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
197 An expression is required here.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
198 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
199 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
200 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
201
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
202 <varlistentry><term>function header missing</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
203 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
204 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
205 Statement or expression encountered outside a function.
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
206 Typically causes by mismatched braces. (10.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
207 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
208 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
209 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
210
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
211 <varlistentry><term>function type error</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
212 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
213 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
214 A function cannot be declared as returning an array, function,
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
215 struct, or union. (8.4, 10.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
216 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
217 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
218 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
219
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
220 <varlistentry><term>function unfinished</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
221 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
222 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
223 End-of-file encountered before the end of function definition.
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
224 (10.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
225 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
226 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
227 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
228
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
229 <varlistentry><term>identifier missing</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
230 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
231 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
232 Identifier name required here but none was found.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
233 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
234 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
235 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
236
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
237 <varlistentry><term>illegal declaration</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
238 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
239 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
240 Declarations are allowed only at the beginning of a block.
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
241 (9.2)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
242 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
243 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
244 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
245
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
246 <varlistentry><term>label required</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
247 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
248 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
249 Label name required on goto statement. (9.11)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
250 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
251 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
252 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
253
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
254 <varlistentry><term>label undefined</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
255 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
256 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
257 Goto to label not defined in the current function. (9.12)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
258 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
259 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
260 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
261
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
262 <varlistentry><term>lvalue required</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
263 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
264 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
265 Left side of assigment must be able to be "stored into".
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
266 Array names, functions, structs, etc. are no lvalues. (7.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
267 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
268 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
269 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
270
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
271 <varlistentry><term>multiple defaults</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
272 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
273 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
274 Only one default statement is allowed in a switch block. (9.7)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
275 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
276 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
277 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
278
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
279 <varlistentry><term>multiple definition</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
280 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
281 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
282 Identifier name was declared more than once in the same block
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
283 level (9.2, 11.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
284 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
285 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
286 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
287
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
288 <varlistentry><term>must be integral</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
289 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
290 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
291 Type of object required here must be type int, char or pointer.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
292 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
293 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
294 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
295
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
296 <varlistentry><term>name clash</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
297 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
298 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
299 Struct-union member and tag names must be mutually distinct. (8.5)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
300 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
301 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
302 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
303
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
304 <varlistentry><term>name in cast</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
305 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
306 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
307 Identifier name found in a cast. Only types are allowed. (7.2, 8.7)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
308 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
309 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
310 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
311
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
312 <varlistentry><term>named twice</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
313 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
314 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
315 Names in a function parameter list may appear only once. (10.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
316 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
317 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
318 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
319
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
320 <varlistentry><term>no 'if' for 'else'</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
321 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
322 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
323 Else statement found with no matching if. This is typically
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
324 caused by extra or missing braces and/or semicolons. (9.3)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
325 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
326 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
327 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
328
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
329 <varlistentry><term>no switch statement</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
330 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
331 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
332 Case statements can only appear within a switch block. (9.7)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
333 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
334 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
335 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
336
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
337 <varlistentry><term>not a function</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
338 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
339 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
340 Primary in expression is not type "function returning...". If
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
341 this is really a function call, the function name was declared
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
342 differently elsewhere. (7.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
343 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
344 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
345 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
346
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
347 <varlistentry><term>not an argument</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
348 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
349 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
350 Name does not appear in the function parameter list. (10.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
351 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
352 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
353 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
354
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
355 <varlistentry><term>operand expected</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
356 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
357 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
358 Unary operators require one operand, binary operators two.
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
359 This is typically caused by misplaced parenthesis, casts or
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
360 operators. (7.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
361 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
362 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
363 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
364
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
365 <varlistentry><term>out of memory</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
366 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
367 <para>
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
368 Compiler dynamic memory overflow. The compiler requires
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
369 dynamic memory for symbol table entries, block level
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
370 declarations and code generation. Three major factors affect
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
371 this memory usage. Permanent declarations (those appearing on
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
372 the outer block level (used in include files)) must be
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
373 reserved from the dynamic memory for the duration of the
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
374 compilation of the file. Each { causes the compiler to perform
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
375 a block-level recursion which may involve "pushing down"
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
376 previous declarations which consume memory. Auto class
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
377 initializers require saving expression trees until past the
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
378 declarations which may be very memory-expensive if may exist.
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
379 Avoiding excessive declarations, both permanent and inside
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
380 compound statement blocks conserve memory. If this error
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
381 occurs on an auto initializer, try initializing the value in
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
382 the code body.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
383 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
384 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
385 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
386
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
387 <varlistentry><term>pointer mismatch</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
388 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
389 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
390 Pointers refer to different types. Use a case if required. (7.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
391 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
392 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
393 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
394
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
395 <varlistentry><term>pointer or integer required</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
396 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
397 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
398 A pointer (of any type) or integer is required to the left of
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
399 the '-&gt;' operator. (7.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
400 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
401 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
402 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
403
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
404 <varlistentry><term>pointer required</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
405 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
406 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
407 Pointer operand required with unary * operator. (7.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
408 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
409 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
410 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
411
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
412 <varlistentry><term>primary expected</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
413 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
414 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
415 Primary expression required here. (7.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
416 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
417 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
418 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
419
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
420 <varlistentry><term>should be NULL</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
421 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
422 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
423 Second and third expression of ?: conditional operator cannot
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
424 be pointers to different types. If both are pointers, they
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
425 must be of the same type or one of the two must be null. (7.13)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
426 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
427 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
428 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
429
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
430 <varlistentry><term>**** STACK OVERFLOW ****</term>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
431 <listitem>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
432 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
433 Compiler stack has overflowed. Most likely cause is very deep
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
434 lock-level nesting or hundreds of switch cases.
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
435 </para>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
436 </listitem>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
437 </varlistentry>
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
438
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
439 <varlistentry><term>storage error</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
440 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
441 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
442 Reg and auto storage classes mey only be used within functions.
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
443 (8.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
444 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
445 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
446 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
447
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
448 <varlistentry><term>struct member mismatch</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
449 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
450 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
451 Identical member names in two different structures must have
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
452 the same type and offset in both. (8.5)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
453 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
454 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
455 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
456
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
457 <varlistentry><term>struct member required</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
458 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
459 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
460 Identifier used with . and -&gt; operators must be a structure
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
461 member name. (7.1)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
462 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
463 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
464 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
465
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
466 <varlistentry><term>struct syntax</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
467 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
468 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
469 Brace, comma, etc. is missing in a struct declaration. (8.5)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
470 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
471 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
472 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
473
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
474 <varlistentry><term>struct or union inappropiate</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
475 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
476 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
477 Struct or union cannot be used in the context.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
478 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
479 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
480 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
481
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
482 <varlistentry><term>syntax error</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
483 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
484 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
485 Expression, declaration or statement is incorrectly formed.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
486 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
487 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
488 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
489
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
490 <varlistentry><term>third expression missing</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
491 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
492 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
493 ? must be followed by a : with expression. This error may be
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
494 causes by unmatched parenthesis or other errors in the
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
495 expression. (7.13)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
496 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
497 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
498 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
499
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
500 <varlistentry><term>too long</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
501 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
502 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
503 Too many characters provided in a string initializing a
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
504 character array. (8.6)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
505 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
506 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
507 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
508
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
509 <varlistentry><term>too many brackets</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
510 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
511 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
512 Unmatched or unexpected brackets encountered processiong an
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
513 initializer. (8.6)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
514 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
515 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
516 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
517
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
518 <varlistentry><term>too many elements</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
519 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
520 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
521 More data items supplied for aggregate level in initializer
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
522 than members of the aggregate. (8.6)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
523 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
524 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
525 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
526
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
527 <varlistentry><term>type error</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
528 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
529 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
530 Compiler type matching error. Should never happen.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
531 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
532 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
533 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
534
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
535 <varlistentry><term>type mismatch</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
536 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
537 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
538 Types and/or operators in expression do not correspond. (6)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
539 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
540 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
541 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
542
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
543 <varlistentry><term>typedef - not a variable</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
544 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
545 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
546 Typedef type name cannot be used in this manner. (8.8)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
547 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
548 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
549 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
550
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
551 <varlistentry><term>undeclared variable</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
552 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
553 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
554 no declaration exists at any block level for this identifier.
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
555 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
556 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
557 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
558
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
559 <varlistentry><term>undefined structure</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
560 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
561 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
562 Union or struct declaration refers to an undefined structure
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
563 name. (8.5)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
564 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
565 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
566 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
567
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
568 <varlistentry><term>unions not allowed</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
569 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
570 <para>
610
497d17b4b264 Finished all the error messages in appendix A
roug
parents: 554
diff changeset
571 Cannot initialize union members. (8.6)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
572 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
573 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
574 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
575
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
576 <varlistentry><term>unterminated character constant</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
577 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
578 <para>
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
579 Unmatched ' character delimiters. (2.4.3)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
580 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
581 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
582 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
583
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
584 <varlistentry><term>unterminated string</term>
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
585 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
586 <para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
587 Unmatched " string delimiters. (2.5)
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
588 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
589 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
590 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
591
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
592 <varlistentry><term>while expected</term>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
593 <listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
594 <para>
554
afff0087c27f findstr and signal finished.
roug
parents: 552
diff changeset
595 No while found for do statement. (9.5)
552
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
596 </para>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
597 </listitem>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
598 </varlistentry>
fcb97f0ba24b All diagnostics added.
roug
parents: 468
diff changeset
599
468
60b821f18853 A little here and there.
roug
parents: 466
diff changeset
600 </variablelist>
466
bea58398bb15 Skeletons for the C Compiler User's Guide, 1983
roug
parents:
diff changeset
601 </appendix>