do not use parameterized types as PDUs
diff --git a/libasn1compiler/asn1c_save.c b/libasn1compiler/asn1c_save.c
index cc7d8a6..76f312b 100644
--- a/libasn1compiler/asn1c_save.c
+++ b/libasn1compiler/asn1c_save.c
@@ -640,6 +640,10 @@
[arg->expr->expr_type].type_cb)
return 0;
+ /* Parameterized types can't serve as PDU's without instantiation. */
+ if(arg->expr->lhs_params)
+ return 0;
+
if((arg->flags & A1C_PDU_ALL)
|| ((arg->flags & A1C_PDU_AUTO) && !arg->expr->_type_referenced)
|| asn1c__pdu_type_lookup(arg->expr->Identifier)) {