summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/fe/idl.ypp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/fe/idl.ypp')
-rw-r--r--TAO/TAO_IDL/fe/idl.ypp6
1 files changed, 6 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/fe/idl.ypp b/TAO/TAO_IDL/fe/idl.ypp
index a3f260db3c8..9d759cf5745 100644
--- a/TAO/TAO_IDL/fe/idl.ypp
+++ b/TAO/TAO_IDL/fe/idl.ypp
@@ -2117,6 +2117,11 @@ primary_expr
// is followed.
expr = idl_global->gen ()->create_expr (
$1->copy ());
+ if (d->node_type () == AST_Decl::NT_enum_val)
+ {
+ AST_EnumVal *enumval = AST_EnumVal::narrow_from_decl (d);
+ expr->enum_parent (enumval->enum_parent ());
+ }
}
$<exval>$ = expr;
@@ -3713,6 +3718,7 @@ enumerator :
c->next_enum_val (),
&n
);
+ e->enum_parent (c);
e->annotation_appls ($1);
}