From fbfc8363a378a676d5ab71fc44edf0b8f681ffa0 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 13 May 2010 01:04:14 -0400 Subject: cp-tree.h (UNKNOWN_TYPE): Remove. * cp-tree.h (UNKNOWN_TYPE): Remove. * decl.c (cxx_init_decl_processing): Use LANG_TYPE instead. * error.c (dumy_type, dump_type_prefix, dump_type_suffix): Likewise. * typeck2.c (cxx_incomplete_type_diagnostic): Likewise. * class.c (instantiate_type): Check unknown_type_node rather than UNKNOWN_TYPE. * name-lookup.c (maybe_push_decl): Likewise. * rtti.c (get_tinfo_decl_dynamic): Likewise. (get_typeid): Likewise. * semantics.c (finish_offsetof): Likewise. From-SVN: r159349 --- gcc/cp/class.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/class.c') diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 87f8111..88db80f 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -6398,7 +6398,7 @@ instantiate_type (tree lhstype, tree rhs, tsubst_flags_t flags) flags &= ~tf_ptrmem_ok; - if (TREE_CODE (lhstype) == UNKNOWN_TYPE) + if (lhstype == unknown_type_node) { if (flags & tf_error) error ("not enough type information"); -- cgit v1.1