🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2585

missed warning in GCC 1.34

#2585
From: Ron Guilmette
Date: Fri, 28 Apr 1989 18:36
12 lines
662 bytes
As the following code will demonstrate, GCC 1.34/Sun3 will issue
warnings if a bit field has a negative width.  No warning will be
issued however if the width of a given field is zero.

struct s {
	unsigned int	f:0;		/* no warning */
};

struct s2 {
	unsigned int	f2:-1;		/* warning */
};
Technical Details
Message-ID: <8904281836.AA07253@riunite.aca.mcc.com>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!MCC.COM!rfg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!uunet!tut.cis.ohio-state.edu!MCC.COM!rfg
From: rfg@MCC.COM (Ron Guilmette)
Newsgroups: gnu.gcc.bug
Subject: missed warning in GCC 1.34
Message-ID: <8904281836.AA07253@riunite.aca.mcc.com>
Date: 28 Apr 89 18:36:59 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 12