Patchwork [C++] Fix a pasto in cp_tree_equal

login
register
mail settings
Submitter Jakub Jelinek
Date March 15, 2013, 4:22 p.m.
Message ID <20130315162251.GM12913@tucnak.redhat.com>
Download mbox | patch
Permalink /patch/228085/
State New
Headers show

Comments

Jakub Jelinek - March 15, 2013, 4:22 p.m.
Hi!

While working on OpenMP 4.0 atomics support, I've run into this
pasto.  Acked by Jason privately, queued for 4.8.1 and 4.9.

2013-03-15  Jakub Jelinek  <jakub@redhat.com>

	* tree.c (cp_tree_equal): Fix a pasto.


	Jakub

Patch

--- gcc/cp/tree.c.jj	2013-03-11 10:04:11.000000000 +0100
+++ gcc/cp/tree.c	2013-03-15 12:18:16.958721269 +0100
@@ -2486,7 +2486,7 @@  cp_tree_equal (tree t1, tree t2)
     t1 = TREE_OPERAND (t1, 0);
   for (code2 = TREE_CODE (t2);
        CONVERT_EXPR_CODE_P (code2)
-	 || code1 == NON_LVALUE_EXPR;
+	 || code2 == NON_LVALUE_EXPR;
        code2 = TREE_CODE (t2))
     t2 = TREE_OPERAND (t2, 0);