From 13d6b662ed32e272c6e74d7e954652c97d01d742 Mon Sep 17 00:00:00 2001 From: Botond Baranyi <botond.baranyi@ericsson.com> Date: Mon, 10 Aug 2020 14:50:28 +0200 Subject: [PATCH] Fixed false error with 'activate' parameter (Bug 565952) Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com> Change-Id: Ic006a3fe0f905297937de95deb08fbebbc284bfb --- compiler2/ttcn3/AST_ttcn3.cc | 3 ++- compiler2/ttcn3/AST_ttcn3.hh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler2/ttcn3/AST_ttcn3.cc b/compiler2/ttcn3/AST_ttcn3.cc index aa1209148..9f313c473 100644 --- a/compiler2/ttcn3/AST_ttcn3.cc +++ b/compiler2/ttcn3/AST_ttcn3.cc @@ -735,8 +735,9 @@ namespace Ttcn { Free(expr_cache); } - bool Reference::has_parameters() const + bool Reference::has_parameters() { + get_refd_assignment(); // make sure the reference is checked return params_checked ? parlist != NULL : params != NULL; } diff --git a/compiler2/ttcn3/AST_ttcn3.hh b/compiler2/ttcn3/AST_ttcn3.hh index 2d7039ac1..c672555a1 100644 --- a/compiler2/ttcn3/AST_ttcn3.hh +++ b/compiler2/ttcn3/AST_ttcn3.hh @@ -364,7 +364,7 @@ namespace Ttcn { Reference(Identifier *p_modid, Identifier *p_id, ParsedActualParameters *p_params, reftype_t p_reftype = REF_BASIC); ~Reference(); - virtual bool has_parameters() const; + virtual bool has_parameters(); virtual Reference *clone() const; virtual void set_fullname(const string& p_fullname); virtual void set_my_scope(Scope* p_scope); -- GitLab