🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1071

Tautological assertion in cp-decl.c

#1071
From: Jason Merrill
Date: Sat, 05 Sep 1992 23:47
11 lines
865 bytes
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
Technical Details
Message-ID: <1992Sep5.234735.29108@muddcs.claremont.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!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