introduce namespaces
diff --git a/libasn1compiler/asn1compiler.c b/libasn1compiler/asn1compiler.c
index 37dca3e..de09cfb 100644
--- a/libasn1compiler/asn1compiler.c
+++ b/libasn1compiler/asn1compiler.c
@@ -34,6 +34,8 @@
 	 */
 	TQ_FOR(mod, &(asn->modules), mod_next) {
 		TQ_FOR(arg->expr, &(mod->members), next) {
+			arg->ns = asn1_namespace_new_from_module(mod, 0);
+
 			compiler_streams_t *cs = NULL;
 
 			if(asn1c_attach_streams(arg->expr))
@@ -52,6 +54,9 @@
 					arg->expr->_lineno);
 				return ret;
 			}
+
+			asn1_namespace_free(arg->ns);
+			arg->ns = 0;
 		}
 	}