summaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-13 05:04:14 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-13 05:04:14 +0000
commit4fdaf896dddd224958053b670bc9be78f102e789 (patch)
tree6e2bf1018c014867d845d936d25929da98f58eb2 /gcc/cp/error.c
parent3076e678b02128b964e449ba476ce19cf51b7c76 (diff)
downloadgcc-4fdaf896dddd224958053b670bc9be78f102e789.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159349 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 3a03790c338..8595719651a 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -333,11 +333,13 @@ dump_type (tree t, int flags)
switch (TREE_CODE (t))
{
- case UNKNOWN_TYPE:
+ case LANG_TYPE:
if (t == init_list_type_node)
pp_string (cxx_pp, M_("<brace-enclosed initializer list>"));
- else
+ else if (t == unknown_type_node)
pp_string (cxx_pp, M_("<unresolved overloaded function type>"));
+ else
+ gcc_unreachable ();
break;
case TREE_LIST:
@@ -698,7 +700,7 @@ dump_type_prefix (tree t, int flags)
case TYPE_DECL:
case TREE_VEC:
case UNION_TYPE:
- case UNKNOWN_TYPE:
+ case LANG_TYPE:
case VOID_TYPE:
case TYPENAME_TYPE:
case COMPLEX_TYPE:
@@ -801,7 +803,7 @@ dump_type_suffix (tree t, int flags)
case TYPE_DECL:
case TREE_VEC:
case UNION_TYPE:
- case UNKNOWN_TYPE:
+ case LANG_TYPE:
case VOID_TYPE:
case TYPENAME_TYPE:
case COMPLEX_TYPE: