summaryrefslogtreecommitdiff
path: root/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/copy.c b/copy.c
index 02c23e4..7b8c24e 100644
--- a/copy.c
+++ b/copy.c
@@ -318,6 +318,9 @@ static void copy_stmt(Copier *c, Statement *out, Statement *in) {
case STMT_DECL:
copy_decl(c, &out->decl, &in->decl);
break;
+ case STMT_NAMESPACE:
+ copy_block(c, &out->ns.body, &in->ns.body);
+ break;
}
}