This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c/92: Re: labelled initializers
- To: gcc-gnats at sourceware dot cygnus dot com
- Subject: c/92: Re: labelled initializers
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 9 Mar 2000 10:52:55 +0100
- References: <8B57882C41A0D1118F7100805F9F68B50C44A6E4@RED-MSG-45>
- Resent-Cc: gcc-prs at gcc dot gnu dot org, t-simonm at microsoft dot com
- Resent-Reply-To: gcc-gnats@gcc.gnu.org, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de>
>Number: 92
>Category: c
>Synopsis: labelled initializers
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Thu Mar 09 02:06:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator: Simon Marlow <t-simonm@microsoft.com>
>Release: 2.95.2
>Organization:
>Environment:
>Description:
Original-Message-ID: <8B57882C41A0D1118F7100805F9F68B50C44A6E4@RED-MSG-45>
Date: Thu, 18 Mar 1999 08:09:37 -0800
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
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: