]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/cp-tree.h
cp-tree.h (PARM_DECL_EXPR): Delete.
authorMark Mitchell <mark@markmitchell.com>
Thu, 21 Jan 1999 14:29:33 +0000 (14:29 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 21 Jan 1999 14:29:33 +0000 (14:29 +0000)
commit297e73d807cc311d7a49f5b96729f03fde333da5
treebaf338e3c55393da72e8f2f9e50fa81ec5ca6a34
parent939b4a73dbf5ef563c9567c68c6d8e56708f964d
cp-tree.h (PARM_DECL_EXPR): Delete.

* cp-tree.h (PARM_DECL_EXPR): Delete.
(convert_default_arg): Change prototype.
(check_default_argument): Declare.
(search_tree): Likewise.
* call.c (convert_default_arg): Take the function to which the
default argument belongs as a parameter, and do any necessary
instantiation here, instead of ...
(build_over_call): Here.
* decl.c (local_variable_p): New function.
(check_default_argument): Likewise, split out and tidied from ...
(grokparms): Here.
* error.c (dump_expr): Don't set PARM_DECL_EXPR.
* pt.c (tsubst_call_declarator_parms): New function.
(for_each_template_parm): Handle ARRAY_REFs.  Do the obvious thing
with CALL_EXPRs, rather than trying to be clever.
(tsubst): Use tsubst_call_declarator_parms.
* tree.c (search_tree): Don't make it static.
* typeck.c (convert_arguments): Use new interface to
convert_default_arg.

From-SVN: r24803
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/error.c
gcc/cp/pt.c
gcc/cp/tree.c
gcc/cp/typeck.c
gcc/testsuite/g++.old-deja/g++.other/defarg1.C [new file with mode: 0644]
This page took 0.060623 seconds and 5 git commands to generate.