From df63b0dabae239a707e04430283a5e86d940d9c8 Mon Sep 17 00:00:00 2001
From: Botond Baranyi <botond.baranyi@ericsson.com>
Date: Wed, 21 Oct 2020 11:20:57 +0200
Subject: [PATCH] Fixed double error reporting in 'map param' semantic check
 (bug 566094)

Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com>
Change-Id: I7748f64f3402d36eb720bef5cecb03bca243c1fd
---
 compiler2/ttcn3/Statement.cc | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/compiler2/ttcn3/Statement.cc b/compiler2/ttcn3/Statement.cc
index 674bb47f1..464c0bfd0 100644
--- a/compiler2/ttcn3/Statement.cc
+++ b/compiler2/ttcn3/Statement.cc
@@ -5145,12 +5145,6 @@ error:
           "endpoint is unknown",
           ptb1 != NULL ? "second" : "first");
       }
-      if (config_op.parsed_params != NULL &&
-          ((cref1_is_system && ptb1 == NULL) ||
-           (cref2_is_system && ptb2 == NULL))) {
-        error("Cannot determine system component in `%s' operation with "
-          "`param' clause", get_stmt_name());
-      }
       chk_map_params(cref1_is_system ? ptb1 : (cref2_is_system ? ptb2 : NULL));
       return;
     }
-- 
GitLab