зеркало из https://github.com/mono/mail-archives.git
114 строки
3.7 KiB
HTML
114 строки
3.7 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Mono-bugs] [Bug 21070] New - Crash compiling Enum when values initialized with other enum values.
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="000019.html">
|
|
<LINK REL="Next" HREF="000021.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Mono-bugs] [Bug 21070] New - Crash compiling Enum when values initialized with other enum values.
|
|
</H1>
|
|
<B>bugzilla-daemon@rocky.ximian.com
|
|
</B>
|
|
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
|
|
TITLE="[Mono-bugs] [Bug 21070] New - Crash compiling Enum when values initialized with other enum values.">bugzilla-daemon@rocky.ximian.com
|
|
</A><BR>
|
|
<I>26 Feb 2002 15:22:09 -0000</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="000019.html">[Mono-bugs] [Bug 21069] New - Crash when interface method have a ref parameter.
|
|
</A></li>
|
|
<LI> Next message: <A HREF="000021.html">[Mono-bugs] [Bug 21072] New - Crash compiling a constant variable of Enum type
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#20">[ date ]</a>
|
|
<a href="thread.html#20">[ thread ]</a>
|
|
<a href="subject.html#20">[ subject ]</a>
|
|
<a href="author.html#20">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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 <A HREF="mailto:f_ai@hotmail.com.">f_ai@hotmail.com.</A>
|
|
|
|
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=21070">http://bugzilla.ximian.com/show_bug.cgi?id=21070</A>
|
|
|
|
--- shadow/21070 Tue Feb 26 10:22:09 2002
|
|
+++ shadow/21070.tmp.10045 Tue Feb 26 10:22:09 2002
|
|
@@ -0,0 +1,49 @@
|
|
+Bug#: 21070
|
|
+Product: Mono/MCS
|
|
+Version: unspecified
|
|
+OS:
|
|
+OS Details:
|
|
+Status: NEW
|
|
+Resolution:
|
|
+Severity:
|
|
+Priority: Minor
|
|
+Component: Misc
|
|
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+ReportedBy: <A HREF="mailto:f_ai@hotmail.com">f_ai@hotmail.com</A>
|
|
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
|
|
+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.
|
|
+
|
|
+More details:(this is what i think is happening)
|
|
+When defining 'A', ' LookupEnumValue' is called to properly define A_3,
|
|
+for this an Expression.Resolve is called, eventually the we require the
|
|
+Type 'A' to be defined during the 'Resolve' but this is just what we are
|
|
+defining in the first place.
|
|
+
|
|
+Additional Information:
|
|
+Using snapshot of Feb-24-02.
|
|
+
|
|
+Source code to reproduce the problem:
|
|
+namespace N1
|
|
+{
|
|
+ public enum A
|
|
+ {
|
|
+ A_1, A_2, A_3 = A_1 + A_2
|
|
+ }
|
|
+
|
|
+ public enum B
|
|
+ {
|
|
+ B_1, B_2, B_3 = A.A_1
|
|
+ }
|
|
+
|
|
+ public enum C
|
|
+ {
|
|
+ B_1, B_2, B_3 = N1.A.A_1
|
|
+ }
|
|
+}
|
|
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="000019.html">[Mono-bugs] [Bug 21069] New - Crash when interface method have a ref parameter.
|
|
</A></li>
|
|
<LI> Next message: <A HREF="000021.html">[Mono-bugs] [Bug 21072] New - Crash compiling a constant variable of Enum type
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#20">[ date ]</a>
|
|
<a href="thread.html#20">[ thread ]</a>
|
|
<a href="subject.html#20">[ subject ]</a>
|
|
<a href="author.html#20">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|