[gnu.gcc.bug] a gcc bug

skubi%perle.DEC@DECWRL.DEC.COM (04/04/89)

 
The following program
 
============================================================
 
static inline void my_putchar (x)
    char x;
{
    12;
}
 
int lit_len;
main()
{
        my_putchar (lit_len % 16);
}
 
=============================================================
 
is compiled by gcc -c -g (gcc version 1.33).
 
On a VAX Ultrix 2.0, the compiler says:
 
gcc: Program cc1 got fatal signal 6.
 
On a Sun3, SunOs 4.0.1 Export, the compiler says:
 
gcc: Program cc1 got fatal signal 6.
 
    I do know my program is incorrect, however the error report is extremely
ungraceful. (the program is incorrect because typeof (lit_len % 16) != char).
 
 
                        Marcin Skubiszewski, DEC Paris Research Lab
                        skubi@decprl.dec.com