Throw DTE when timer is started with infinity or not_a_number
Submitted by Bence Janos Szabo
Link to original bug (#500852)
Description
Throw DTE in the case of:
testcase TC_NegSem_2302_timer_start_001() runs on TComp{
var float duration := infinity;
t_timer.start(duration);
setverdict(fail);
}
In this case the compiler does not know in compile time what is the value of the duration variable to a DTE must be raised.
If the duration would be a constant then the compiler can raise a compile time error.
Version: 5.5.0