summaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-11 11:29:06 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-11 11:29:06 +0000
commit88eba637ae7aab78534685b977877a082a8f195d (patch)
tree11b6da7db1cd5be48000f077ba320d400ebfe72a /gcc/cp/semantics.c
parent4cef0eda798ae8098f062d6aca234e98120c608c (diff)
downloadgcc-88eba637ae7aab78534685b977877a082a8f195d.tar.gz
cp:
* parse.y (template_parm_header, template_spec_header): New reductions. Split out from ... (template_header): ... here. Use them. (template_template_parm): Use template_parm_header. * semantics.c (finish_template_template_parm): Add assert. testsuite: * g++.old-deja/g++.pt/crash63.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38900 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index cf882792ad1..10e67c64463 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -1689,6 +1689,8 @@ finish_template_template_parm (aggr, identifier)
DECL_ARTIFICIAL (decl) = 1;
end_template_decl ();
+ my_friendly_assert (DECL_TEMPLATE_PARMS (tmpl), 20010110);
+
return finish_template_type_parm (aggr, tmpl);
}