From: Paolo Carlini Date: Mon, 25 Jul 2011 17:50:13 +0000 (+0000) Subject: re PR bootstrap/49845 (bootstrap failure) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b97927a4e92fce96a44ef58468b532526e91ebfe;p=gcc.git re PR bootstrap/49845 (bootstrap failure) 2011-07-25 Paolo Carlini PR bootstrap/49845 * parser.c (cp_parser_perform_range_for_lookup): Always assign *being and *end before returning. From-SVN: r176765 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e1ff31134e2..fe6b7da9c8b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2011-07-25 Paolo Carlini + + PR bootstrap/49845 + * parser.c (cp_parser_perform_range_for_lookup): Always assign *being + and *end before returning. + 2011-07-25 Paolo Carlini PR c++/49838 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index c687a34e655..b7410d54058 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -8796,7 +8796,10 @@ static tree cp_parser_perform_range_for_lookup (tree range, tree *begin, tree *end) { if (error_operand_p (range)) - return error_mark_node; + { + *begin = *end = error_mark_node; + return error_mark_node; + } if (!COMPLETE_TYPE_P (complete_type (TREE_TYPE (range)))) {