home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / gcc / bug / 2265 < prev    next >
Encoding:
Text File  |  1992-09-08  |  843 b   |  25 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason
  3. From: jason@jarthur.claremont.edu (Jason Merrill)
  4. Subject: Tautological assertion in cp-decl.c
  5. Message-ID: <1992Sep5.234735.29108@muddcs.claremont.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: Harvey Mudd College, Claremont, CA 91711
  8. Distribution: gnu
  9. Date: Sat, 5 Sep 1992 23:47:35 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 12
  12.  
  13. When compiling gcc, I was warned that a test on line 10584 of cp-decl.c was
  14. always 1 due to the range of the type.  The line is:
  15.  
  16.     assert (current_binding_level->n_incomplete >= 0);
  17.  
  18. And, indeed, the n_incomplete field of binding_level is of type unsigned
  19. short, so this assertion doesn't do anything useful.
  20.  
  21. --
  22. Jason Merrill
  23. jason@jarthur.claremont.edu
  24.  
  25.