aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-04-15 17:52:25 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-04-15 17:52:25 +0000
commit3d7de1fa03bd7dd6c5b9826cb14ea4db2ea03c6c (patch)
tree353c00ef2b3c60285c7f29faa543d98b5a7a5eca /gcc/cp/semantics.c
parent08967681aff5889301500fe0d126c32c1a95a0ac (diff)
downloadgcc-3d7de1fa03bd7dd6c5b9826cb14ea4db2ea03c6c.zip
gcc-3d7de1fa03bd7dd6c5b9826cb14ea4db2ea03c6c.tar.gz
gcc-3d7de1fa03bd7dd6c5b9826cb14ea4db2ea03c6c.tar.bz2
cp-tree.h (lang_type): Add documentation.
* cp-tree.h (lang_type): Add documentation. * decl2.c (handle_class_head): Create template declarations here, as appropriate. * parse.y (class_head): Return whether or not we entered a new scope, as well as the type named. (named_class_head): Likewise. (named_complex_class_head_sans_basetype): Likewise. (structsp): Adjust accordingly. Pop scope when required. * parse.c: Regenerated. * pt.c (check_default_tmpl_args): Robustify. (redeclare_class_template): Likewise. (instantiate_class_template): An instantiation of an anonymous union is itself an anonymous union. * semantics.c (begin_class_definition): Don't create template declarations here. From-SVN: r26475
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index c0716d6..6ed5a1e 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -1290,11 +1290,6 @@ begin_class_definition (t)
pushtag (TYPE_IDENTIFIER (t), t, 0);
}
maybe_process_partial_specialization (t);
- if (processing_template_decl
- && ! CLASSTYPE_TEMPLATE_SPECIALIZATION (t)
- && TYPE_CONTEXT (t) && TYPE_P (TYPE_CONTEXT (t))
- && ! current_class_type)
- push_template_decl (TYPE_STUB_DECL (t));
pushclass (t, 1);
TYPE_BEING_DEFINED (t) = 1;
/* Reset the interface data, at the earliest possible