Article View: gnu.g++.bug
Article #715g++ 01149001 bug (1.36.1) - missed errors when loop body is a simple decl
From: rfg
Date: Sun, 14 Jan 1990 17:47
Date: Sun, 14 Jan 1990 17:47
26 lines
959 bytes
959 bytes
// g++ 1.36.1 fails to flag errors for all cases where the inner statement
// in a conditional or looping statement is a simple declarative statement.
// (Cfront 2.0) flags all such cases as errors.
// g++-01149001.bug
void func ()
{
int i;
if (i)
int then_part; // Correctly flagged as an error
else
int then_part; // Correctly flagged as an error
while (i)
int while_body; // missed error
do
int do_body; // missed error
while (i);
for (;;)
int for_body; // missed error
}
Technical Details
Message-ID:
<9001140947.aa03656@ICS.UCI.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ICS.UCI.EDU!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!tut.cis.ohio-state.edu!ICS.UCI.EDU!rfg From: rfg@ICS.UCI.EDU Newsgroups: gnu.g++.bug Subject: g++ 01149001 bug (1.36.1) - missed errors when loop body is a simple decl Message-ID: <9001140947.aa03656@ICS.UCI.EDU> Date: 14 Jan 90 17:47:49 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 26