aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/name-lookup.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-05-13 01:04:14 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-05-13 01:04:14 -0400
commitfbfc8363a378a676d5ab71fc44edf0b8f681ffa0 (patch)
tree6e2bf1018c014867d845d936d25929da98f58eb2 /gcc/cp/name-lookup.c
parent07eea34ee659da5c9960ad524dcf291b60003557 (diff)
downloadgcc-fbfc8363a378a676d5ab71fc44edf0b8f681ffa0.zip
gcc-fbfc8363a378a676d5ab71fc44edf0b8f681ffa0.tar.gz
gcc-fbfc8363a378a676d5ab71fc44edf0b8f681ffa0.tar.bz2
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
Diffstat (limited to 'gcc/cp/name-lookup.c')
-rw-r--r--gcc/cp/name-lookup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index ebc689b..845faf3 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -1133,7 +1133,7 @@ maybe_push_decl (tree decl)
possible. */
&& TREE_CODE (DECL_CONTEXT (decl)) != NAMESPACE_DECL)
|| (TREE_CODE (decl) == TEMPLATE_DECL && !namespace_bindings_p ())
- || TREE_CODE (type) == UNKNOWN_TYPE
+ || type == unknown_type_node
/* The declaration of a template specialization does not affect
the functions available for overload resolution, so we do not
call pushdecl. */