Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353322 - Case stmt: Compound "when" clause not captured in IR
Summary: Case stmt: Compound "when" clause not captured in IR
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 352031
  Show dependency tree
 
Reported: 2011-07-28 09:28 EDT by Scott Greer CLA
Modified: 2017-02-23 14:17 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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