From 55e00d8f8f189b585630b39665cc18a1eb8fc2bb Mon Sep 17 00:00:00 2001 From: BenceJanosSzabo <bence.janos.szabo@ericsson.com> Date: Fri, 17 Mar 2017 09:21:31 +0100 Subject: [PATCH] Fixed xer part of has_encoding() function (Bug 513762) Change-Id: I4cd8dbcabe4b311108ebc210689288dca955eed7 Signed-off-by: BenceJanosSzabo <bence.janos.szabo@ericsson.com> --- compiler2/Type.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler2/Type.cc b/compiler2/Type.cc index 863a334c6..557155148 100644 --- a/compiler2/Type.cc +++ b/compiler2/Type.cc @@ -5752,7 +5752,12 @@ namespace Common { } if (subresult) memory.remember(t2, ANSWER_YES); - else return memory.remember(t2, ANSWER_NO); + else { + // Remember the t type as NO also, because at least one of its + // field rejected xer encoding. + memory.remember(t, ANSWER_NO); + return memory.remember(t2, ANSWER_NO); + } // Note: return only if the answer (false) is known. // If the answer is true, keep checking. } // next i -- GitLab