class.c (resolve_address_of_overloaded_function): Do conversion to correct type here...
authorMark Mitchell <mark@markmitchell.com>
Wed, 16 Dec 1998 15:51:21 +0000 (15:51 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 16 Dec 1998 15:51:21 +0000 (15:51 +0000)
commit50714e797cc4cfea26a05bb4d740bf75fa36aab0
tree9ba08fcbc1251b50b01a06eebf94cfd3de9e82ce
parent05c32e169c2f0d30db29a198693c3e6a7a08c4ff
class.c (resolve_address_of_overloaded_function): Do conversion to correct type here, rather than ...

* class.c (resolve_address_of_overloaded_function): Do conversion
to correct type here, rather than ...
(instantiate_type): Here.
* cp-tree.h (DECL_TEMPLATE_PARM_P): New macro.
(DECL_TEMPLATE_TEMPLATE_PARM_P): Use it.
(decl_template_parm_p): Remove.
* decl.c (pushdecl): Don't set DECL_CONTEXT for a template
paramter.
* lex.c (do_identifier): Use DECL_TEMPLATE_PARM_P.
(push_inline_template_parms_recursive): Set it.
(decl_template_parm_p): Remove.
(check_template_shadow): Use DECL_TEMPLATE_PARM_P.
(process_template_parm): Set it.

From-SVN: r24344
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/lex.c
gcc/testsuite/g++.old-deja/g++.pt/shadow1.C [new file with mode: 0644]