* search.c (lookup_fnfields_slot): Call complete_type.
From-SVN: r172808
This commit is contained in:
parent
8adaafcf03
commit
31603723a0
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue