KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q65641: C1001: Internal Compiler Error: grammar.c:1.138, Line 164

Article: Q65641
Product(s): See article
Version(s): 6.00   | 6.00
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | buglist6.00 S_QuickC | mspl13_c
Last Modified: 24-OCT-1990

The sample program shown below will generate the following error when
compiled with Microsoft C version 6.00, with or without optimizations:

   bar.c(6) : fatal error C1001: Internal Compiler Error
               (compiler file '@(#)grammar.c:1.138', line 164)
               Contact Microsoft Product Support Services

The following error is generated by the QuickC version 2.50 compiler
when it tries to compile the same code:

   bar.c(6) : fatal error C1001: Internal Compiler Error
               (compiler file 'gencode.c', line 437)
               Contact Microsoft Product Support Services

Sample Code:
------------

char foo[7];
float test;

void bar(void)
{
  test+=foo;
}

The above program is incorrect because it is attempting to do
arithmetic on incompatible types, a float and an address. If you
correct this inconsistency then the program will compile.

Microsoft has confirmed this to be a problem with C version 6.00 and
QuickC version 2.50. We are researching this problem and will post new
information here as it becomes available.

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.