GCC bug ?

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Sat, 14 Feb 2004 23:16:34 +0100
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_at_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.
Received on Sat Feb 14 2004 - 13:16:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:43 UTC