From 08c39174f6bb4a46e33598d4cb8ef99cb0d38dcb Mon Sep 17 00:00:00 2001 From: Adam Knapp <knappadam5@gmail.com> Date: Fri, 11 Dec 2020 12:52:42 +0100 Subject: [PATCH] Bugfix: bug 568742 OOP-protected methods may be overridden by public or protected methods only (bug 568742) Signed-off-by: Adam Knapp <knappadam5@gmail.com> --- compiler2/ttcn3/Ttcnstuff.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler2/ttcn3/Ttcnstuff.cc b/compiler2/ttcn3/Ttcnstuff.cc index 033d2450d..161ac9072 100644 --- a/compiler2/ttcn3/Ttcnstuff.cc +++ b/compiler2/ttcn3/Ttcnstuff.cc @@ -3478,7 +3478,7 @@ namespace Ttcn { local_id.get_dispname().c_str()); } else if (base_func->get_visibility() == NOCHANGE && - (local_func->get_visibility() != PUBLIC || local_func->get_visibility() != NOCHANGE)) { + local_func->get_visibility() != PUBLIC && local_func->get_visibility() != NOCHANGE) { local_def->error("Protected methods can be only overridden by " "public or protected methods `%s'", local_id.get_dispname().c_str()); } -- GitLab