summaryrefslogtreecommitdiffstats
path: root/gcc/cp/dump.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-17 22:35:19 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-08-17 22:35:19 +0000
commit900f01f23b350459c40b2d3cfe7bb05d0c392987 (patch)
tree42f4395767e8a85f8e3d853c22f9a94eaaefea02 /gcc/cp/dump.c
parent978a0e224b40fb766422db80278b9e9552d0251a (diff)
downloadppe42-gcc-900f01f23b350459c40b2d3cfe7bb05d0c392987.tar.gz
ppe42-gcc-900f01f23b350459c40b2d3cfe7bb05d0c392987.zip
* decl.c (add_decl_to_level): New function.
(push_local_binding): Use it. (find_binding): Fix typo in comment. (pushdecl): Use add_decl_to_level. Put templates on the corresponding namespace-scope binding levels. * dump.c (dequeue_and_dump): Print the specializations of a template. * pt.c (push_template_decl_real): Don't push a template multiple times. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28738 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/dump.c')
-rw-r--r--gcc/cp/dump.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index e04655264a8..d67ab68867d 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -606,7 +606,7 @@ dequeue_and_dump (di)
if (DECL_CONV_FN_P (t))
dump_string (di, "conversion");
if (dump_children_p)
- dump_child ("body", DECL_INITIAL (t));
+ dump_child ("body", DECL_SAVED_TREE (t));
break;
case NAMESPACE_DECL:
@@ -618,6 +618,11 @@ dequeue_and_dump (di)
dump_child ("dcls", cp_namespace_decls (t));
break;
+ case TEMPLATE_DECL:
+ if (dump_children_p)
+ dump_child ("spcs", DECL_TEMPLATE_SPECIALIZATIONS (t));
+ break;
+
case OVERLOAD:
if (dump_children_p)
{
OpenPOWER on IntegriCloud