D2030 Caused by Undefined Identifier in Parameter List

ID Number: Q64033

6.00

OS/2

buglist6.00 fixlist6.00a

Summary:

Using an undefined symbol in a function or function prototype's

parameter list can cause the internal compiler error D2030 in

Microsoft C version 6.0 under OS/2.

More Information:

The code below produces the following errors under default

optimizations with Microsoft C version 6.0 under OS/2:

error C2065: 'maxfields' : undefined

error C2057: expected constant expression

Command line error D2030 : INTERNAL COMPILER ERROR in 'P1'

Contact Microsoft Product Support Services

If output is redirected to a file or a pseudofile, such as the compile

window in the Programmer's WorkBench (PWB), only the internal compiler

error will be displayed.

Microsoft has confirmed this to be a problem in C version 6.0. This

problem was corrected in C version 6.0a.

Sample Code

-----------

/* Compile options needed: none

*/

void func (char retstring[maxfields]);

void main(void){}