From 4ca6afb62d2802ea995fbd65cbc1531dabf5ffae Mon Sep 17 00:00:00 2001 From: Botond Baranyi <botond.baranyi@ericsson.com> Date: Mon, 5 Mar 2018 16:28:51 +0100 Subject: [PATCH] Added compiler note when mapping is not in translation mode (bug 532021) Change-Id: Ib0ddc2acc03785440883197aec1a92aa723859a0 Signed-off-by: Botond Baranyi <botond.baranyi@ericsson.com> --- compiler2/ttcn3/Statement.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/compiler2/ttcn3/Statement.cc b/compiler2/ttcn3/Statement.cc index c7692a69f..38e9a8955 100644 --- a/compiler2/ttcn3/Statement.cc +++ b/compiler2/ttcn3/Statement.cc @@ -4922,6 +4922,14 @@ error: config_op.portref2->warning("Port type `%s' was marked as `internal'", pt2->get_typename().c_str()); } + if ((ptb1 != NULL && !ptb1->is_legacy() && + ptb1->get_type() == PortTypeBody::PT_USER) || + (ptb2 != NULL && !ptb2->is_legacy() && + ptb2->get_type() == PortTypeBody::PT_USER)) { + note("This mapping is not done in translation mode, because the %s " + "endpoint is unknown", + ptb1 != NULL ? "second" : "first"); + } return; } if (cref1_is_tc || cref2_is_system) { @@ -4970,6 +4978,10 @@ error: config_op.portref2->warning("Port type `%s' was marked as `internal'", pt2->get_typename().c_str()); } + if ((!ptb1->is_legacy() && ptb1->get_type() == PortTypeBody::PT_USER) || + (!ptb2->is_legacy() && ptb2->get_type() == PortTypeBody::PT_USER)) { + note("This mapping is not done in translation mode"); + } } } -- GitLab