[Mono-bugs] [Bug 21070] Changed - Crash compiling Enum when values initialized with other enum values.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
12 Mar 2002 22:50:23 -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 miguel@ximian.com.

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

--- shadow/21070	Sat Mar  2 15:37:41 2002
+++ shadow/21070.tmp.7950	Tue Mar 12 17:50:23 2002
@@ -10,13 +10,12 @@
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: f_ai@hotmail.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: Crash compiling Enum when values initialized with other enum values.
 
 Description of Problem:
 There is a crash when the enum items are initialized with other enum 
 value.
 
@@ -72,6 +71,14 @@
 is support for constant folding which is why the A_1 + A_2 does not
 work; I should have that fixed soon enough.
 
 The problem turned out to be rather subtle in the distinction between
 DeclSpaces and TypeContainers; you can find a patch posted
 mono-patches if you are interested
+
+------- Additional Comments From miguel@ximian.com  2002-03-12 17:50 -------
+Ravi, I have a question there: the constant folder is not being
+invoked, because both sides of the Binary expression (A1 and A2) are
+not resolving to an EnumConstant, but instead they are resolving to a
+FieldExpr.
+
+Miguel