BUG: Incorrect Use of #pragma Pack Causes C1001 ErrorsLast reviewed: July 24, 1997Article ID: Q119873 |
The information in this article applies to:
SYMPTOMSWhen compiling code that uses #pragma pack() to pop an ID that has not been pushed after successfully popping an ID that was pushed, the compilers listed above will generate:
fatal error C1001: INTERNAL COMPILER ERRORIn addition, this error will be followed by a message similar to
(compiler file 'msc1.cpp', line 902) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information RESOLUTIONPop only IDs that have been previously pushed onto the compiler's internal stack.
STATUSMicrosoft has confirmed this to be a bug in the products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe following sample code demonstrates the bug:
Sample Code
/* packfail.c Compile options needed: none */ #pragma pack(push, a) #pragma pack(push, b, 4) #pragma pack(pop, b) #pragma pack(pop, value) |
Additional query words: 8.00 9.00 buglist1.00 buglist2.00 buglist8.00
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |