aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-04-21 00:28:17 -0400
committerJason Merrill <jason@gcc.gnu.org>2011-04-21 00:28:17 -0400
commit31603723a0c32e9540b963298e8c95c294eb36dc (patch)
tree1c6b12dae8c078c1244afc1b2df20365d9d77371
parent8adaafcf039d470993d1969069231b20fe67b460 (diff)
downloadgcc-31603723a0c32e9540b963298e8c95c294eb36dc.zip
gcc-31603723a0c32e9540b963298e8c95c294eb36dc.tar.gz
gcc-31603723a0c32e9540b963298e8c95c294eb36dc.tar.bz2
* search.c (lookup_fnfields_slot): Call complete_type.
From-SVN: r172808
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/search.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index eae80e3..879f863 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 9ec6fc3..e7d2048 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -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);