class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to intialize a vtable.
authorMark Mitchell <mark@codesourcery.com>
Tue, 25 May 1999 15:31:38 +0000 (15:31 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Tue, 25 May 1999 15:31:38 +0000 (15:31 +0000)
commit3ebc5c52e85c509f8f5a167b1eda51e0bbb01507
treea92251b76a9d8c50ccfdb269bdce4aaf3e601d76
parentc9b2595a777d4f39268ec960c9264f310a642f5d
class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to intialize a vtable.

* class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to
intialize a vtable.
* cp-tree.h (NAMESPACE_LEVEL): Reformat.
(lang_decl_flags): Document MEMFUNC_POINTER_TO.  Save four bytes
by combining TEMPLATE_INFO and LEVEL into a single union.
(DECL_TEMPLATE_INFO): Reformat.
(DECL_SAVED_TREE): Document.
(DECL_TEMPLATE_INJECT): Remove.
* class.c (finish_struct): Remove code to deal with
DECL_TEMPLATE_INJECT.
* decl.c (maybe_process_template_type_declaration): Handle all new
types in templates uniformly.
* method.c (bulid_overload_identifier): Use CP_DECL_CONTEXT, not
DECL_CONTEXT.
* pt.c (lookup_template_class): Inject template instantiations of
forward-declarations.
(instantiate_class_template): Remove code processing
DECL_TEMPLATE_INJECT.
* pt.c (lookup_template_class): Tweak lookup to find member
templates.
* pt.c (tsubst_expr, case ASM_STMT): Don't tsubst into
ASM_CV_QUAL.
* semantics.c (finish_asm_stmt): Make strings permanent if they're
used in a template.

From-SVN: r27144
12 files changed:
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/g++.old-deja/g++.pt/asm1.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/asm2.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/inject1.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/inject2.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/memclass21.C [new file with mode: 0644]