summaryrefslogtreecommitdiffstats
path: root/gcc/cp/dump.c
diff options
context:
space:
mode:
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