From 2fd1b9612e206aabcc57a4f2ec762672379fc818 Mon Sep 17 00:00:00 2001
From: Botond Baranyi <botond.baranyi@ericsson.com>
Date: Wed, 6 Jan 2021 17:42:47 +0100
Subject: [PATCH] Fixed segmentation fault caused by previous commit (bug
 568714)

Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com>
Change-Id: I2e496a10b67c3ddb556a7a998e55fb4a217f9970
---
 compiler2/ttcn3/AST_ttcn3.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler2/ttcn3/AST_ttcn3.cc b/compiler2/ttcn3/AST_ttcn3.cc
index 40fe36cf9..9f4c539c2 100644
--- a/compiler2/ttcn3/AST_ttcn3.cc
+++ b/compiler2/ttcn3/AST_ttcn3.cc
@@ -10270,6 +10270,7 @@ namespace Ttcn {
         pars_m.add(name, par);
         if (parent_scope && parent_scope->has_ass_withId(id)) {
           Reference ref(0, id.clone());
+          ref.set_my_scope(this);
           Common::Assignment *ass = parent_scope->get_ass_bySRef(&ref);
           if (!ass) FATAL_ERROR("FormalParList::chk()");
           if (parent_scope->get_scope_class() == NULL ||
-- 
GitLab