diff --git a/compiler2/Value.cc b/compiler2/Value.cc
index 1ca9f2822daad4a51617a99eb8b67df331fa68bc..3dbfd12109b2c8909d3e04953d6b99243ce79bf6 100644
--- a/compiler2/Value.cc
+++ b/compiler2/Value.cc
@@ -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
diff --git a/function_test/Semantic_Analyser/TTCN3_SA_ttcn3adhoc_TD.script b/function_test/Semantic_Analyser/TTCN3_SA_ttcn3adhoc_TD.script
index 97a53cd322f85654277bb430860273187b1ad605..1e682e2729a226f851daa57d35ce9421476c41c8 100644
--- a/function_test/Semantic_Analyser/TTCN3_SA_ttcn3adhoc_TD.script
+++ b/function_test/Semantic_Analyser/TTCN3_SA_ttcn3adhoc_TD.script
@@ -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.