]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/pt.c
cp-tree.h (ICS_USER_FLAG): Remove comment about obsolete flag.
authorMark Mitchell <mark@codesourcery.com>
Thu, 7 Oct 2004 17:48:36 +0000 (17:48 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 7 Oct 2004 17:48:36 +0000 (17:48 +0000)
commitc7222c02245141fe7dbe018593717e1b63389d23
tree8114b15819ae2f47168dcdfac92c99c8df72ce80
parentd0e75c71c9a2586b0de06873febcdddd0eb7f01b
cp-tree.h (ICS_USER_FLAG): Remove comment about obsolete flag.

* cp-tree.h (ICS_USER_FLAG): Remove comment about obsolete flag.
(DECL_MEMBER_TEMPLATE_P): New macro.
(is_member_template): Remove.
(class_method_index_for_fn): New function.
* pt.c (build_over_call): Use DECL_MEMBER_TEMPLATE_P.
* class.c (finish_struct_methods): Remove out-of-date comment.
* decl.c (copy_fn_p): Use DECL_MBMER_TEMPLATE_P.
* decl2.c (check_classfn): Use DECL_MEMBER_TEMPLATE_P and
class_method_index_for_fn.
* pt.c (is_member_template): Remove.
(is_member_template_class): Likewise.
(optimize_specialization_lookup_p): New function.
(retrieve_specialization): Optimize lookups for members that are
not member templates.
(register_specialization): Adjust accordingly.
(build_template_decl): Add member_template_p parameter.  Set
DECL_MEMBER_TEMPLATE_P.
(process_partial_specialization): Adjust call to
retrieve_specialization.
(push_template_decl_real): Determine whether the template is a
member template.
(lookup_template_class): Use retrieve_specialization.
(tsubst_decl): Adjust call to retrieve_specialization.
(tsubst_exception_specification): New function.
(tsubst): Use it.
(tsubst_copy): Use DECL_MEMBER_TEMPLATE_P.
(instantiate_template): Adjust call to retrieve_specialization.
(regenerate_decl_from_template): Do not actually generate a new
DECL.
(instantiate_decl): Adjust call to retrieve_specialization.
(class_method_index_for_fn): New method.

From-SVN: r88697
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/cp/search.c