Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353322

Summary: Case stmt: Compound "when" clause not captured in IR
Product: z_Archived Reporter: Scott Greer <greer>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: CLOSED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: jeffdouglas, mheitz, pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 352031    

Description Scott Greer CLA 2011-07-28 09:28:58 EDT
In the FVT testcases, there is this test:

		for ( counter from 0 to stop )
			case (counter)
				when ( 1 )
					total = total + 1;
				when ( 2, 3 )
					total += 3;
				otherwise
					total += 5;
			end;
		end

This is converted to a set of if/else blocks in the IR, however, there's nothing for the first operand of the second when block -- "2".   Seems like the 2nd when block should be represented as something like "if (counter == 2 || counter == 3)".
Comment 1 Paul Harmon CLA 2011-08-18 17:23:04 EDT
I have fixed this with a change to EGL2MofStatement
Comment 2 Scott Greer CLA 2011-09-12 09:12:38 EDT
Verified