Commit 1629c278 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Restricted 'omit' matching mechanism in template variable assignments



Change-Id: Ic70da1d3661e2521de57cb0a8bf82e9e5974b06c
Signed-off-by: Botond Baranyi's avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent b72cd98a
......@@ -9065,7 +9065,9 @@ error:
type->chk_this_template_ref(templ);
self_ref |= type->chk_this_template_generic(templ, INCOMPLETE_ALLOWED,
OMIT_ALLOWED, ANY_OR_OMIT_ALLOWED, SUB_CHK, NOT_IMPLICIT_OMIT, lhs);
(type->get_parent_type() != NULL && !type->is_optional_field()) ?
OMIT_NOT_ALLOWED : OMIT_ALLOWED,
ANY_OR_OMIT_ALLOWED, SUB_CHK, NOT_IMPLICIT_OMIT, lhs);
chk_template_restriction();
return;
error:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment