Am 02.12.2022 um 12:36 schrieb Sven Schreiber:

Hi, consider this fairly minimal code example:

<hansl>

open denmark
loop i = $tmax..$tmax + 9
    catch value = LRM[i]  
    eval $error     # This line necessary to provoke the problem!
endloop

</hansl>

No news about the underlying bug, but in order to work around it, apparently it's enough to move the "catch" line into a separate function so that it only appears indirectly in the loop. Like this:

<hansl>

open denmark

function scalar catchfunc(series y, int i)
    catch value = y[i]
    return $error ? NA : value
end function

loop i = $tmax..$tmax + 9
    value = catchfunc(LRM,i)  
    print value
endloop

</hansl>

This works here for me.

thanks

sven