Euphoria Ticket #152: Run-time switch machine crash

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

Type: Bug Report Severity: Major Category: Interpreter
Assigned To: mattlewis Status: Fixed Reported Release: 3177
Fixed in SVN #: 3179, 3178 View VCS: 3179, 3178 Milestone:

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).

Search



Quick Links

User menu

Not signed in.

Misc Menu