BUG: C1001: grammar.c, line 179, 180, or 192ID: Q87527
|
The following error message
is produced by Microsoft C/C++ version 7.0 when the following conditions are all true:fatal error C1001: INTERNAL COMPILER ERROR (compiler file '@(#)grammar.c:1.147, line 179)
fatal error C1001: INTERNAL COMPILER ERROR (compiler file '@(#)grammar.c:1.147, line 180)
fatal error C1001: internal compiler error (compiler file '@(#)grammar.c:1.147, line 192)
Include the prototype for the function. The compiler will then flag the error as
The program will compile without error once the parameter is corrected.C2172: 'function': actual parameter is not a pointer
Microsoft has confirmed this to be a bug in the products listed at the
beginning of this article. We are researching this bug and will post new
information here in the Microsoft Knowledge Base as it becomes available.
This is not a problem in Visual C++ 32-bit Edition.
/* Compile options needed: /Oi
*/
/* // Remove the comment from this section to cause the C2172 error
#include <memory.h>
*/
struct s
{
char a, b, c;
};
void func( void );
void func( void )
{
struct s x;
memset( x, 0, 5 ); // The correct code is:
// memset( &x, 0, 5);
}
Additional query words: 7.00 8.00 8.00c 1.00 1.50
Keywords : kb16bitonly
Version :
Platform :
Issue type :
Last Reviewed: July 21, 1999