BUG: C1001 When Template Class Is Included in Precompiled Header

ID: Q195738


The information in this article applies to:


SYMPTOMS

When template classes or template class header files are included in a precompiled header file, the compiler may generate the following error for files that use the precompiled header:

fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
-or-
fatal error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1188)
This error occurs only on machines with the Windows 95 or Windows 98 operating system.


CAUSE

The compiler exceeds the allocated memory limit.


RESOLUTION

Use one of the following three suggested workarounds:


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.


Keywords          : kbCompiler kbLangCPP kbVC600bug kbVC500SP3bug 
Version           : WINDOWS:5.0sp3; WINNT:5.0sp3,6.0
Platform          : WINDOWS winnt 
Issue type        : kbbug 

Last Reviewed: July 9, 1999