re PR c++/37683 (Revision 140780 caused g++.dg/warn/Wparentheses-3.C)

2008-09-30  H.J. Lu  <hongjiu.lu@intel.com>

	PR c++/37683
	* parser.c (cp_parser_selection_statement): Fix uninitialized
	variable.

From-SVN: r140810
This commit is contained in:
H.J. Lu 2008-10-01 12:26:02 +00:00 committed by Paolo Bonzini
parent 001003c265
commit 2d66eeeb56
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2008-09-30 H.J. Lu <hongjiu.lu@intel.com>
PR c++/37683
* parser.c (cp_parser_selection_statement): Fix uninitialized
variable.
2008-09-30 Simon Martin <simartin@users.sourceforge.net>
PR c++/37555

View File

@ -7163,6 +7163,7 @@ cp_parser_selection_statement (cp_parser* parser, bool *if_p)
if (!cp_lexer_next_token_is_keyword (parser->lexer, RID_ELSE))
warning_at (loc, OPT_Wempty_body, "suggest braces around "
"empty body in an %<if%> statement");
nested_if = false;
}
else
cp_parser_implicitly_scoped_statement (parser, &nested_if);