* search.c (lookup_fnfields_slot): Call complete_type.

From-SVN: r172808
This commit is contained in:
Jason Merrill 2011-04-21 00:28:17 -04:00 committed by Jason Merrill
parent 8adaafcf03
commit 31603723a0
2 changed files with 3 additions and 1 deletions

View 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.

View 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);