Another bug in C compilers

stephen at datacube.UUCP stephen at datacube.UUCP
Wed Aug 6 23:39:00 AEST 1986


> I believe I've found a bug in the C compiler for the Sys 5 Rel 2 3B20.
> Say we have a structure declared as:
> struct ABC
> {
> 	stuff
> };
> and then follow it with:
> struct ABC;
> ... no error ....

It is necessary for structures which reference each other, as in:

struct a;

struct b {
    ...
    struct a *a_ptr;
};

struct a {
    ...
    struct b *b_ptr;
};

Stephen Watkins                    UUCP: ihnp4!datacube!stephen
Datacube Inc.; 4 Dearborn Rd.; Peabody, Ma. 01960; 617-535-6644



More information about the Comp.lang.c mailing list