Commit 5dbc3940 by Martin Liska Committed by Martin Liska

Fix an UBSAN error in cp/parse.c (PR c++/86653).

2018-07-31  Martin Liska  <mliska@suse.cz>

        PR c++/86653
	* parser.c (cp_parser_condition): Initialize non_constant_p
        to false.

From-SVN: r263110
parent ae71d81b
2018-07-31 Martin Liska <mliska@suse.cz>
PR c++/86653
* parser.c (cp_parser_condition): Initialize non_constant_p
to false.
2018-07-28 David Malcolm <dmalcolm@redhat.com> 2018-07-28 David Malcolm <dmalcolm@redhat.com>
* error.c (cp_printer): In the leading comment, move "%H" and "%I" * error.c (cp_printer): In the leading comment, move "%H" and "%I"
......
...@@ -11721,7 +11721,7 @@ cp_parser_condition (cp_parser* parser) ...@@ -11721,7 +11721,7 @@ cp_parser_condition (cp_parser* parser)
if (cp_parser_parse_definitely (parser)) if (cp_parser_parse_definitely (parser))
{ {
tree pushed_scope; tree pushed_scope;
bool non_constant_p; bool non_constant_p = false;
int flags = LOOKUP_ONLYCONVERTING; int flags = LOOKUP_ONLYCONVERTING;
if (!cp_parser_check_condition_declarator (parser, declarator, loc)) if (!cp_parser_check_condition_declarator (parser, declarator, loc))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment