From 9ab21b8984dd5ef16a7d40a2f426f8e3f03989a3 Mon Sep 17 00:00:00 2001 From: Lev Walkin Date: Thu, 19 Oct 2006 02:46:01 +0000 Subject: Fixed explicit tagging of an in-lined constructed type. --- libasn1compiler/asn1c_C.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libasn1compiler') diff --git a/libasn1compiler/asn1c_C.c b/libasn1compiler/asn1c_C.c index 9d3cff57..bc9102ec 100644 --- a/libasn1compiler/asn1c_C.c +++ b/libasn1compiler/asn1c_C.c @@ -2151,7 +2151,9 @@ emit_member_table(arg_t *arg, asn1p_expr_t *expr) { OUT(",\n"); if(C99_MODE) OUT(".tag_mode = "); - if(expr->tag.tag_class) { + if((!(expr->expr_type & ASN_CONSTR_MASK) + || expr->expr_type == ASN_CONSTR_CHOICE) + && expr->tag.tag_class) { if(expr->tag.tag_mode == TM_IMPLICIT) OUT("-1,\t/* IMPLICIT tag at current level */\n"); else -- cgit v1.2.3