INF: Compiler Hangs in DOS w/ Long Relative Path for #include

ID Number: Q67034

6.00 6.00a 6.00ax 7.00

MS-DOS

buglist6.00 buglist6.00a buglist6.00ax buglist7.00

Summary:

SYMPTOMS

The MS-DOS versions of the Microsoft C Compiler versions 6.0, 6.0a,

6.0ax, and C/C++ version 7.0, cannot handle #include directives

that specify files with extremely long path specifications. For

example, if the following sample line is included in a C source

file, the C 6.0 and 6.0a compilers will hang, requiring that the

computer be restarted:

#include "..\test\..\test\..\test\..\test\..\test\..\test\..\test\\

..\test\..\test\..\test\..\test\..\test\..\test\header.h"

A long relative path, but not as long as the one above, may also

result in the following compiler error:

fatal error C1063: compiler limit: compiler stack overflow

When the /EM (extended memory) option is also specified with C

version 6.0ax, the following error is generated:

CL1319 Error: Internal error - unrecoverable fault

STATUS

Microsoft has confirmed this to be a problem in C versions 6.0,

6.0a, 6.0ax, and 7.0. We are researching this problem and will post

new information here as it becomes available.

Additional reference words: 6.00 6.00a 6.00ax 7.00