Path: 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 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 */ };