OSDN Git Service

* semantics.c (baselink_for_fns): Correct BASELINK_BINFO.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 27 Apr 2010 21:25:29 +0000 (21:25 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:36:36 +0000 (14:36 +0900)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158806 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/semantics.c

index 412d818..4e6a008 100644 (file)
@@ -1,5 +1,7 @@
 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.
index 589241f..c4ff2af 100644 (file)
@@ -2651,7 +2651,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