From 7bc2e33726f64c694211f8ea60678353feb231bb Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Thu, 22 Apr 1999 23:33:15 +0000 Subject: [PATCH] tree.c (build_exception_variant): Fix typo: use the chain of U, not trying V, while cycling through U. * tree.c (build_exception_variant): Fix typo: use the chain of U, not trying V, while cycling through U. From-SVN: r26597 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/tree.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c517e678bf6..eeb633eb616 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1999-04-22 Brendan Kehoe + + * tree.c (build_exception_variant): Fix typo: use the chain of U, + not trying V, while cycling through U. + 1999-04-22 Mark Mitchell * cp-tree.h (lang_decl_flags): Remove returns_first_arg and diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 6acb50189ea..dbbc5f03a57 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1417,7 +1417,7 @@ build_exception_variant (type, raises) for (t = TYPE_RAISES_EXCEPTIONS (v), u = raises; t != NULL_TREE && u != NULL_TREE; - t = TREE_CHAIN (t), u = TREE_CHAIN (v)) + t = TREE_CHAIN (t), u = TREE_CHAIN (u)) if (((TREE_VALUE (t) != NULL_TREE) != (TREE_VALUE (u) != NULL_TREE)) || !same_type_p (TREE_VALUE (t), TREE_VALUE (u)))