Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!CRIMEE.ICS.UCI.EDU!schmidt From: schmidt@CRIMEE.ICS.UCI.EDU ("Douglas C. Schmidt") Newsgroups: gnu.gcc.bug Subject: Warning messages for out-of-range values? Message-ID: <8907162204.aa03293@PARIS.ICS.UCI.EDU> Date: 17 Jul 89 04:58:40 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 25 It would be nice if g++ and gcc gave warning message about the following compile-time range errors: ---------------------------------------- struct base { unsigned int p : 2; char c; }; int main () { struct base b; /* Error, values out of range... */ char c = 101023092.0938; b.p = 500; b.c = 10101910; return 0; } ---------------------------------------- Doug