NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/22500: lint breakage for named initializers



The following reply was made to PR toolchain/22500; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/22500: lint breakage for named initializers
Date: Sun, 30 Mar 2008 18:44:52 +0000

 Not only is this not fixed, it gets even more exciting:
 
    --- 3.c ---
 struct {
        struct {
                int b;
        } b;
        struct {
                int d;
        } d;
 } bar = {{.b = .d = {0}}};
    --- end ---
 
 % lint -S 3.c
 3.c:
 lint: /usr/libexec/lint1 got SIGSEGV
 
 This isn't even syntactically valid; it shouldn't get as far as the
 initializer-handling code, but it does and that's where it dumps
 core.
 
 I took a look at the initializer-handling code, and it's quite
 resistant to any sort of quick inspection. Maybe it'll make sense if
 really dug through. Maybe I should do that sometime and rework it for
 clarity...
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index