KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q64033: D2030 Caused by Undefined Identifier in Parameter List

Article: Q64033
Product(s): See article
Version(s): 6.00
Operating System(s): OS/2
Keyword(s): ENDUSER | buglist6.00 | mspl13_c
Last Modified: 31-AUG-1990

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.00 under OS/2.

The code below produces the following errors under default
optimizations with Microsoft C version 6.00 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 with C version 6.00. We
are researching this problem and will post new information here as it
becomes available.

Sample Code
-----------

void foo (char retstring[maxfields]);

void main(void){}

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.