[in GAP 4.10dev-1462-g06ba3fe of today]
The following function
Fail:=function()
local a,v;
a:=[1.2,3];
v:=2;
v:=a{v};
end;
produces (as expected) an error
Error, List Elements: <positions> must be a dense list of positive integers in
v := a{v}; at ...
but then does not enter the break loop, but bail out to the main gap> loop.
[in GAP 4.10dev-1462-g06ba3fe of today]
The following function
produces (as expected) an error
but then does not enter the break loop, but bail out to the main gap> loop.