Skip to content
Snippets Groups Projects
Commit 7715b703 authored by Botond Baranyi's avatar Botond Baranyi
Browse files

Fixed compiler crash when logging 'omit' (bug 545802)


Change-Id: I6211f01c5074e7056de634d1cc788127b040ecdf
Signed-off-by: default avatarBotond Baranyi <botond.baranyi@ericsson.com>
parent 2e0b78ea
No related branches found
No related tags found
No related merge requests found
......@@ -11422,10 +11422,6 @@ void Value::chk_expr_operand_execute_refd(Value *v1,
switch (la->get_type()) {
case Ttcn::LogArgument::L_UNDEF:
case Ttcn::LogArgument::L_ERROR:
FATAL_ERROR("%s argument type",
u.expr.v_optype == OPTYPE_ANY2UNISTR ? "any2unistr" : "log2str");
break; // not reached
case Ttcn::LogArgument::L_MACRO:
case Ttcn::LogArgument::L_STR:
break; // self reference not possible
......
......@@ -8651,4 +8651,28 @@ is not a reference to a type
<END_TC>
:exmp.
*-----------------------------------------------------------*
:h3.Adhoc:: Bug 545802: log(omit)
.*-----------------------------------------------------------*
:xmp tab=0.
<TC - Bug 545802: log(omit)
<COMPILE>
<VERDICT_LEAF FAIL>
<MODULE TTCN Temp Temp.ttcn>
module Temp {
control {
var charstring x := log2str(omit);
log(omit);
}
}
<END_MODULE>
<RESULT IF_FAIL COUNT 2>
Cannot determine the type of the argument
<END_RESULT>
<END_TC>
:exmp.
:etext.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment