GCC bug ?
    Poul-Henning Kamp 
    phk at phk.freebsd.dk
       
    Sat Feb 14 14:16:38 PST 2004
    
    
  
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.
    
    
More information about the freebsd-current
mailing list