Path: 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 // 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 }