Euphoria
Ticket #152:
Run-time switch machine crash
-
Reported by
mattlewis
Apr 21, 2010
The following generates a machine crash:
function foo( )
return 3
end function
constant bar = foo()
integer obj = 2
switch obj do
case 1 then
case bar then
case else
end switch
Details
1. Comment by mattlewis
Apr 21, 2010
Added failing test to t_switch.e in svn:3178.
2. Comment by mattlewis
Apr 21, 2010
The interpreter wasn't handling 'missing' case values on switches that must be evaluated at run time (i.e., in the example above, 2).