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 e1ff31134e21a6de883c447f8f757b4d17d953a9..fe6b7da9c8b0476ca45fb20bf11e22d2b020c8c6 100644 (file)
@@ -1,3 +1,9 @@
+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
index c687a34e655cd6a52a520c838f48804d1d8a5ff2..b7410d540581eda4dfe9f6906ac260c00c033105 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))))
     {