[Mono-bugs] [Bug 34162][Min] Changed - (multiple) cast in a switch case not handled
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
18 Nov 2002 10:46:16 -0000
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lupus@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=34162
--- shadow/34162 Sun Nov 17 11:46:21 2002
+++ shadow/34162.tmp.4335 Mon Nov 18 05:46:16 2002
@@ -1,23 +1,23 @@
Bug#: 34162
Product: Mono/MCS
Version: unspecified
OS: other
OS Details:
-Status: RESOLVED
-Resolution: FIXED
+Status: REOPENED
+Resolution:
Severity: Unknown
-Priority: Blocker
+Priority: Minor
Component: Misc
AssignedTo: martin@ximian.com
ReportedBy: lupus@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: cast in a switch case not handled
+Summary: (multiple) cast in a switch case not handled
This is a build blocker for corlib.
class T {
enum My : byte {
A
}
@@ -39,7 +39,28 @@
------- Additional Comments From martin@ximian.com 2002-11-17 11:46 -------
Btw. I also fixed
const int test = (int)My.A;
+
+
+------- Additional Comments From lupus@ximian.com 2002-11-18 05:46 -------
+The test compiles fine, though mcs still doesn't do the right thing:
+there may be more than one cast, like in this case:
+class T {
+ enum My : byte {
+ A
+ }
+ static void Main() {
+ int val = 0;
+ switch (val) {
+ case (int)(char)(int)My.A:
+ break;
+ default:
+ break;
+ }
+ }
+}
+Yes, I know the sample is a bit contrieved, but we need to handle it
+(setting priority to minor).