re PR bootstrap/49845 (bootstrap failure)
authorPaolo Carlini <paolo.carlini@oracle.com>
Mon, 25 Jul 2011 17:50:13 +0000 (17:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 25 Jul 2011 17:50:13 +0000 (17:50 +0000)
2011-07-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR bootstrap/49845
* parser.c (cp_parser_perform_range_for_lookup): Always assign *being
and *end before returning.

From-SVN: r176765

gcc/cp/ChangeLog
gcc/cp/parser.c

index e1ff311..fe6b7da 100644 (file)
@@ -1,5 +1,11 @@
 2011-07-25  Paolo Carlini  <paolo.carlini@oracle.com>
 
+       PR bootstrap/49845
+       * parser.c (cp_parser_perform_range_for_lookup): Always assign *being
+       and *end before returning.
+
+2011-07-25  Paolo Carlini  <paolo.carlini@oracle.com>
+
        PR c++/49838
        * parser.c (cp_parser_perform_range_for_lookup): Early return if
        error_operand_p (range).
index c687a34..b7410d5 100644 (file)
@@ -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))))
     {