Commit 16de17ae by Jason Merrill Committed by Jason Merrill

* semantics.c (baselink_for_fns): Correct BASELINK_BINFO.

From-SVN: r158806
parent 95b24c84
2010-04-27 Jason Merrill <jason@redhat.com>
* semantics.c (baselink_for_fns): Correct BASELINK_BINFO.
PR c++/43875
* semantics.c (lambda_return_type): Complain about
braced-init-list.
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment