[gnu.gcc.bug] `gcc' dies with a fatal signal 11

derek@UUNET.UU.NET (Derek Clegg) (04/05/89)

/* Version:
 *     gcc version 1.34
 * File:
 *     <this file>
 * Compile with:
 *     gcc -Wall -c <this file>
 * Problem:
 *     `gcc' dies with a fatal signal 11.
 * Output:
 *     <this file>:29: warning: parameter names (without types) in function
 *		declaration
 *     <this file>:31: parse error before `{'
 *     <this file>:34: warning: implicit declaration of function `bar'
 *     <this file>:34: initializer for static variable is not constant
 *     <this file>:34: warning: data definition lacks type or storage class
 *     <this file>:35: parse error before `}'
 *     <this file>: In function bar:
 *     <this file>:39: conflicting types for `bar'
 *     <this file>:34: previous declaration of `bar'
 *     gcc: Program cc1 got fatal signal 11.
 * Notes:
 *     No segmentation fault occurs if `-Wall' is not specified.
 *     `gcc' was compiled with `config.gcc sun3-os4'.
 *     I am using a Sun 3/60 with UNIX 4.2 (Sun release 4.0.1).
 *
 *		Derek B Clegg ({uunet,ucbcad,sun}!island!derek)
 */
void
foo(x);
const char *x;
{
    struct XYZZY *z;

    z = bar(x);
}

struct XYZZY *
bar(x)
const char *x;
{
}

derek@CAD.BERKELEY.EDU (Derek Clegg) (08/22/89)

/* Version:
 *     gcc version 1.35
 * File:
 *     <this file>
 * Compile with:
 *     gcc -O -Wall -c <this file>
 * Problem:
 *     `gcc' dies with a fatal signal 11.
 * Output:
 *     <this file>: In function foo:
 *     <this file>:27: `N' undeclared (first use this function)
 *     <this file>:27: (Each undeclared identifier is reported only once
 *     <this file>:27: for each function it appears in.)
 *     <this file>:30: `table' undeclared (first use this function)
 *     <this file>:27: warning: unused variable `table'
 *     gcc: Program cc1 got fatal signal 11.
 * Notes:
 *     gcc was compiled with `config.gcc sun3-os4'.
 *     I am using a Sun 3/60 with UNIX 4.2 (Sun release 4.0.1).
 *
 *		Derek B Clegg ({uunet,ucbcad,sun}!island!derek)
 */

static void foo(void)
{
    int k;
    unsigned char table[N];

    for (k = 256; --k >= 0; )
	table[k] = 0;
}