[Mono-bugs] [Bug 22889] New - bug in constant folder?

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
1 Apr 2002 18:21:15 -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 erik@bagfors.nu.

http://bugzilla.ximian.com/show_bug.cgi?id=22889

--- shadow/22889	Mon Apr  1 13:21:15 2002
+++ shadow/22889.tmp.17034	Mon Apr  1 13:21:15 2002
@@ -0,0 +1,64 @@
+Bug#: 22889
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: erik@bagfors.nu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: bug in constant folder?
+
+The following code doesn't compile 
+        public enum FL 
+        { 
+            EMPTY = 0, 
+            USHIFT = 11, 
+            USER0 = (1<<(USHIFT+0)), 
+            USER1 = (1<<(USHIFT+1)), 
+            USER2 = (1<<(USHIFT+2)), 
+            USER3 = (1<<(USHIFT+3)), 
+            USER4 = (1<<(USHIFT+4)), 
+            USER5 = (1<<(USHIFT+5)), 
+            USER6 = (1<<(USHIFT+6)), 
+            USER7 = (1<<(USHIFT+7)), 
+            UMASK = (0xff<<USHIFT), 
+            SINGLETON = USER0, 
+            FINALIZE = (1<<7), 
+            TAINT = (1<<8), 
+            EXIVAR = (1<<9), 
+            FREEZE = (1<<10), 
+        } 
+
+This does. 
+
+public enum FL 
+{ 
+    EMPTY = 0, 
+    USHIFT = 11, 
+    USER0 = 2048, 
+    USER1 = 4096, 
+    USER2 = 8192, 
+    USER3 = 16384, 
+    USER4 = 32768, 
+    USER5 = 65536, 
+    USER6 = 131072, 
+    USER7 = 262144, 
+    UMASK = 522240, 
+    SINGLETON = 11, 
+    FINALIZE = 128, 
+    TAINT = 256, 
+    EXIVAR = 512, 
+    FREEZE = 1024, 
+} 
+
+
+
+"Sounds like a bug in the constant folder" according to Miguel