diff mbox

[C++,committed] PR 49845

Message ID 4E2DAD19.7040808@oracle.com
State New
Headers show

Commit Message

Paolo Carlini July 25, 2011, 5:51 p.m. UTC
Hi,

I'm committing as obvious the below, to fix the breakage I inadvertently 
cause. Sorry again.

Paolo.

///////////////////////////
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.
diff mbox

Patch

Index: parser.c
===================================================================
--- parser.c	(revision 176754)
+++ parser.c	(working copy)
@@ -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))))
     {