diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-27 21:25:29 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-04-27 21:25:29 +0000 |
commit | 70b178b2d846a0bc8231fcdad3b5b9e175f5e676 (patch) | |
tree | 9a8f6997daec2174729a1f11829256be8e953acf /gcc/cp/semantics.c | |
parent | cca512c26b34cfa01922fb46fa70c0d17402477b (diff) | |
download | gcc-70b178b2d846a0bc8231fcdad3b5b9e175f5e676.tar.gz |
* semantics.c (baselink_for_fns): Correct BASELINK_BINFO.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158806 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 05c516870a9..6bf33c7f5f2 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -2692,7 +2692,8 @@ baselink_for_fns (tree fns) if (!cl) cl = DECL_CONTEXT (fn); cl = TYPE_BINFO (cl); - return build_baselink (cl, cl, fns, /*optype=*/NULL_TREE); + return build_baselink (TYPE_BINFO (DECL_CONTEXT (fn)), cl, fns, + /*optype=*/NULL_TREE); } /* Returns true iff DECL is an automatic variable from a function outside |