diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-18 09:33:08 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-18 09:33:08 +0000 |
commit | a84e2a6337906e4e2e9889b9d444c25e81dfc614 (patch) | |
tree | 4b0537f2e75f9954fedd8048835cc09c196eec0d /gcc/cp/tree.c | |
parent | b0242c2732480f846fd92d123dd5c8e14278b781 (diff) | |
download | gcc-a84e2a6337906e4e2e9889b9d444c25e81dfc614.tar.gz |
cp:
* tree.c (walk_tree, TREE_LIST): Don't walk the TREE_PURPOSE of
BASELINK_P.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39112 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 88f07be94dc..d5935f085bd 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -1311,7 +1311,9 @@ walk_tree (tp, func, data, htab) break; case TREE_LIST: - WALK_SUBTREE (TREE_PURPOSE (*tp)); + /* A BASELINK_P's TREE_PURPOSE is a BINFO, and hence circular. */ + if (!BASELINK_P (*tp)) + WALK_SUBTREE (TREE_PURPOSE (*tp)); WALK_SUBTREE (TREE_VALUE (*tp)); WALK_SUBTREE (TREE_CHAIN (*tp)); break; |