summaryrefslogtreecommitdiff
path: root/gcc/cp/search.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-07 20:42:37 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-07 20:42:37 +0000
commit869dcfe4e732da27f580387d0caf1d494b114d60 (patch)
tree162d7f5ea6f6051c882ece33106ad652f869918c /gcc/cp/search.c
parent6850974ffe0ec3cd572917f9cbf5b9d8c9936868 (diff)
downloadgcc-869dcfe4e732da27f580387d0caf1d494b114d60.tar.gz
* cp-tree.h (COMPLETE_OR_OPEN_TYPE_P): New macro.
* init.c (build_offset_ref): Use it. * pt.c (maybe_process_partial_specialization): Use it. (instantiate_class_template): Use it. * search.c (lookup_base): Use it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160398 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r--gcc/cp/search.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index e30882116bb..d69d415cd60 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -216,8 +216,7 @@ lookup_base (tree t, tree base, base_access access, base_kind *kind_ptr)
/* If BASE is incomplete, it can't be a base of T--and instantiating it
might cause an error. */
- if (t_binfo && CLASS_TYPE_P (base)
- && (COMPLETE_TYPE_P (base) || TYPE_BEING_DEFINED (base)))
+ if (t_binfo && CLASS_TYPE_P (base) && COMPLETE_OR_OPEN_TYPE_P (base))
{
struct lookup_base_data_s data;