Microsoft KB Archive/30542

PRB: Internal Compiler Error: gencode.c, Line 378 PSS ID Number: Q30542 Article last modified on 12-09-1992 PSS database name: S_QuickC

1.01

MS-DOS

Summary:

Internal compiler error “gencode.c” is generated when the following program is compiled under QC. The error is caused by incorrect usage of function myfunc. The function myfunc was defined as void myfunc(void), but it is being called in an IF statement where a return value is expected.

This is a known problem in Version 1.01 of the QuickC compiler.

To work around the error, replace the statement with proper implementation of the function. For example, define myfunc so that it returns an integer or other data types, int myfunc(void).

More Information:

The following example demonstrates the problem:


 * 1) include 

void myfunc(void); void main(void);

void main(void) { int var;

if (myfunc) var=getchar; }

Copyright Microsoft Corporation 1992.