Am 08.02.2026 um 14:39 schrieb Cottrell, Allin:
On Sun, Feb 8, 2026 at 8:14 AM Sven Schreiber
<sven.schreiber(a)fu-berlin.de> wrote:
> # wrong / crash:
> loop foreach which A
> string renamed = "_" ~ which
> endloop
>
> </hansl>
>
> This happens with 2026a, but I guess it's older than that.
That's now fixed in git.
Thanks, Allin! One more thought on this, though. As you've no doubt
noticed when you fixed it, this doesn't appear to be related to loops or
strings arrays. Instead here for me the simple following line already
produces the crash:
<hansl-crash>
string s = "_" ~ 1
</hansl-crash>
I just tested various gretl versions and it seems to have been
introduced in 2024c. If this regression had been brand new, I would have
asked about whether we need an emergency release, but we have lived with
this for five releases now, so I guess it's OK to have the fix in the
regular next release.
From the changelog of 2024c it's not obvious why this behavior changed,
but well.
@Artur, I guess an obvious candidate for a unit test.
thanks
sven