No Subject
Simon Marlow
t-simonm@microsoft.com
Wed Mar 31 23:54:00 GMT 1999
I submitted the following bug report back in June last year. I've just
checked, and egcs-1.1.2 still has the same bug:
----------------
The following fragment illustrates a bug in egcs (2.91.28 19980508):
typedef struct {
} empty;
typedef struct {
int i;
empty e;
int i2;
} st;
st s = {
i : 0,
i2 : 1,
};
The assembler output is
.file "test.c"
gcc2_compiled.:
___gnu_compiled_c:
.globl _s
.data
.align 2,0x90
.type _s,@object
.size _s,8
_s:
.long 0
.space 4
The '1' in the second initialised field seems to have disappeared.
gcc 2.7.2 compiles this correctly.
Cheers,
Simon
More information about the Gcc-bugs
mailing list