NetBSD Problem Report #20264

Received: (qmail 6861 invoked by uid 605); 9 Feb 2003 16:38:02 -0000
Message-Id: <200302091638.RAA0000113611@zel459.zel.kfa-juelich.de>
Date: Sun, 9 Feb 2003 17:38:00 +0100 (MET)
From: M.Drochner@fz-juelich.de
Sender: gnats-bugs-owner@netbsd.org
Reply-To: M.Drochner@fz-juelich.de
To: gnats-bugs@gnats.netbsd.org
Subject: lint(1) has problems with named member initialization
X-Send-Pr-Version: 3.95

>Number:         20264
>Category:       bin
>Synopsis:       lint(1) has problems with named member initialization
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 09 16:39:00 +0000 2003
>Closed-Date:    
>Last-Modified:  
>Originator:     Matthias Drochner
>Release:        NetBSD 1.6N (most recent)
>Organization:
	KFA Juelich
>Environment:
System: NetBSD zelz26 1.6N NetBSD 1.6N (ZELZ26) #389: Fri Feb 7 23:32:15 MET 2003 drochner@zelz26:/home/drochner/netbsd/sys/arch/i386/compile/ZELZ26 i386
Architecture: i386
Machine: i386
>Description:
	Initializations like in sys/crypto/rijndael/boxes-fst.dat rev. 1.4
cause hard errors on a kernel "make lint".
(What triggers it seems the array within a union.)
>How-To-Repeat:
Here is a small test program:

union mist {
        char *p;
        int a[1];
};

union mist xx = {
        .a = { 7 }
};

Processing this with "lint -S" yields:
linttest.c(8): lint error: /usr/src/usr.bin/xlint/lint1/init.c, 165: popi2()

Replacing "union" by "struct" gives the same result.
>Fix:
	???
>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.