From b97927a4e92fce96a44ef58468b532526e91ebfe Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 25 Jul 2011 17:50:13 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 6 ++++++ gcc/cp/parser.c | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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)))) { -- 2.30.2