home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.bug
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason
- From: jason@jarthur.claremont.edu (Jason Merrill)
- Subject: Tautological assertion in cp-decl.c
- Message-ID: <1992Sep5.234735.29108@muddcs.claremont.edu>
- Sender: gnulists@ai.mit.edu
- Organization: Harvey Mudd College, Claremont, CA 91711
- Distribution: gnu
- Date: Sat, 5 Sep 1992 23:47:35 GMT
- Approved: bug-gcc@prep.ai.mit.edu
- Lines: 12
-
- When compiling gcc, I was warned that a test on line 10584 of cp-decl.c was
- always 1 due to the range of the type. The line is:
-
- assert (current_binding_level->n_incomplete >= 0);
-
- And, indeed, the n_incomplete field of binding_level is of type unsigned
- short, so this assertion doesn't do anything useful.
-
- --
- Jason Merrill
- jason@jarthur.claremont.edu
-
-