🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2732

the switch statement, bitfields and warnings

#2732
From: Ove Ewerlid
Date: Mon, 05 Jun 1989 23:46
6 lines
653 bytes
(gcc-1.35, sun4-os4)

It would be nice to get a warning if a case is out of bound when
switching on a bit field. (at least with -Wall)
Now it seems to be the size of the entity that contains the bitfield
that determines the maximum range of the case's.
Technical Details
Message-ID: <1024@kuling.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!watmath!uunet!mcvax!kth!draken!bmc1!kuling!ewerlid

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!watmath!uunet!mcvax!kth!draken!bmc1!kuling!ewerlid
From: ewerlid@kuling.UUCP (Ove Ewerlid)
Newsgroups: gnu.gcc.bug
Subject: the switch statement, bitfields and warnings
Keywords: switch
Message-ID: <1024@kuling.UUCP>
Date: 5 Jun 89 23:46:27 GMT
Reply-To: ewerlid@mizar.docs.uu.se (Ove Ewerlid)
Organization: Replace me with your organization
Lines: 6