KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q65314: C1001: Internal Compiler Error: ‘@(#)omf.c: 1.88’, Line 147

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

The code below, when compiled using default optimizations, produces
the following error under DOS:

   fatal error C1001: Internal Compiler Error
   (compiler file '@(#)omf.c:1.88', line 147)
   Contact Microsoft Product Support Services

The following error is produced under OS/2:

   Command line error D2030 : INTERNAL COMPILER ERROR in 'P2'
             Contact Microsoft Product Support Services

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

_segment myseg;
extern int _based(myseg) a[];
int _based(_segname("foo")) a[] = {{0}};

To workaround the problem, use one of the following:

1. Compile with the /qc command-line option.

2. Switch the order of lines 2 and 3.

Microsoft has confirmed this to be a problem with the C version 6.00.
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.