Commit 31603723 by Jason Merrill Committed by Jason Merrill

* search.c (lookup_fnfields_slot): Call complete_type.

From-SVN: r172808
parent 8adaafcf
2011-04-20 Jason Merrill <jason@redhat.com> 2011-04-20 Jason Merrill <jason@redhat.com>
* search.c (lookup_fnfields_slot): Call complete_type.
PR c++/48594 PR c++/48594
* decl2.c (build_offset_ref_call_from_tree): Move * decl2.c (build_offset_ref_call_from_tree): Move
non-dependency of object outside condition. non-dependency of object outside condition.
......
...@@ -1451,7 +1451,7 @@ lookup_fnfields_1 (tree type, tree name) ...@@ -1451,7 +1451,7 @@ lookup_fnfields_1 (tree type, tree name)
tree tree
lookup_fnfields_slot (tree type, tree name) 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) if (ix < 0)
return NULL_TREE; return NULL_TREE;
return VEC_index (tree, CLASSTYPE_METHOD_VEC (type), ix); return VEC_index (tree, CLASSTYPE_METHOD_VEC (type), ix);
......
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