Date: Sat, 14 Feb 2004 23:16:34 +0100 From: Poul-Henning Kamp <phk@phk.freebsd.dk> To: current@freebsd.org Subject: GCC bug ? Message-ID: <8832.1076796994@critter.freebsd.dk>
next in thread | raw e-mail | index | archive | help
This seems wrong to me, GCC should warn about the double initialization.
critter phk> cat a.c
struct foo {
int bar;
int barf;
};
struct foo myfoo = {
.bar = 1,
.bar = 2,
};
critter phk> cc -Wall -c a.c
critter phk>
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8832.1076796994>
