* search.c (lookup_fnfields_slot): Call complete_type.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Apr 2011 04:28:17 +0000 (04:28 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Apr 2011 04:28:17 +0000 (04:28 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172808 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/search.c

index eae80e3..879f863 100644 (file)
@@ -1,5 +1,7 @@
 2011-04-20  Jason Merrill  <jason@redhat.com>
 
+       * search.c (lookup_fnfields_slot): Call complete_type.
+
        PR c++/48594
        * decl2.c (build_offset_ref_call_from_tree): Move
        non-dependency of object outside condition.
index 9ec6fc3..e7d2048 100644 (file)
@@ -1451,7 +1451,7 @@ lookup_fnfields_1 (tree type, tree name)
 tree
 lookup_fnfields_slot (tree type, tree name)
 {
-  int ix = lookup_fnfields_1 (type, name);
+  int ix = lookup_fnfields_1 (complete_type (type), name);
   if (ix < 0)
     return NULL_TREE;
   return VEC_index (tree, CLASSTYPE_METHOD_VEC (type), ix);