aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/error.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchell@usa.net>1998-03-24 10:25:44 +0000
committerMark Mitchell <mmitchell@usa.net>1998-03-24 10:25:44 +0000
commit71c7f043f79d71555470551e6d82dcb643172617 (patch)
tree28c2266d2091a5affc7ff055388b2d8a8fd6ff0c /gcc/cp/error.c
parent2c36ce41c7dc4f587e8b5908bacfbca9d269d5de (diff)
* cplus-dem.c (optable): Add sizeof.
(demangle_template_value_parm): New function containing code previously found in demangle_template. (demangle_integral_value): New function which handles complicated integral expressions. (demangle_template): Use them. * error.c (dump_expr): Remove unused variable `l'. * pt.c (for_each_template_parm): New function, created by converting uses_template_parms. (tree_fn_t): New typedef. (uses_template_parms): Use it. (mark_template_parm): New function. (push_template_decl): Check that the argument list of a partial specialization uses all the template parameters. * Make-lang.in (c++filt): Don't delete cxxmain.c after we're done with it; we might want it for debugging. * cp-tree.h (type_unification): Change interface. * class.c (finish_struct_1): Skip nested template types, just like ordinary nested types. (instantiate_type): Use new interface to type_unification. * lex.c (init_lex): Add __sz as opname for sizeof. * method.c (build_overload_scope_ref): New function. (build_overload_int): Handle complex expressions. Set numeric_output_need_bar if necessary. (build_overload_value): Handle non-PARM_DECL nodes; this routine is now used by build_overload_int. Remove some assignments to numeric_output_need_bar. Use build_overload_scope_ref. (build_qualified_name): Note that some template mangled names end with digits, and set numeric_output_need_bar appropriately. Use build_underscore_int. * pt.c (unify): Change interface. (type_unification_real): Likewise. (determine_specialization): Use new interfaces. (tsubst): Deal gracefully with situations in which the argument vector is not fully filled. (fn_type_unification): Use new interfaces. (type_unification): Likewise. Remove NOP_EXPR hack. (type_unification_real): Likewise. (unify): Likewise. Deal with unification of complex expresions. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@18795 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r--gcc/cp/error.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c
index 31a38bb52d3..d97ed3804aa 100644
--- a/gcc/cp/error.c
+++ b/gcc/cp/error.c
@@ -1533,12 +1533,7 @@ dump_expr (t, nop)
}
case TEMPLATE_PARM_INDEX:
- {
- int l = current_template_parms ?
- list_length (current_template_parms) : 0;
-
- dump_decl (TEMPLATE_PARM_DECL (t), -1);
- }
+ dump_decl (TEMPLATE_PARM_DECL (t), -1);
break;
case IDENTIFIER_NODE: