mail-archives/mono-bugs/2002-February/000021.html

108 строки
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 21072] New - Crash compiling a constant variable of Enum type
</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="000020.html">
<LINK REL="Next" HREF="000022.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 21072] New - Crash compiling a constant variable of Enum type
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 21072] New - Crash compiling a constant variable of Enum type">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>26 Feb 2002 15:32:36 -0000</I>
<P><UL>
<LI> Previous message: <A HREF="000020.html">[Mono-bugs] [Bug 21070] New - Crash compiling Enum when values initialized with other enum values.
</A></li>
<LI> Next message: <A HREF="000022.html">[Mono-bugs] [Bug 21076] New - Problem with the types lookup
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#21">[ date ]</a>
<a href="thread.html#21">[ thread ]</a>
<a href="subject.html#21">[ subject ]</a>
<a href="author.html#21">[ 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=21072">http://bugzilla.ximian.com/show_bug.cgi?id=21072</A>
--- shadow/21072 Tue Feb 26 10:32:36 2002
+++ shadow/21072.tmp.10172 Tue Feb 26 10:32:36 2002
@@ -0,0 +1,43 @@
+Bug#: 21072
+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 a constant variable of Enum type
+
+Description of Problem:
+Crash when defining a 'const' variable of a Enum derived type.
+There is no problem defining a non const variable of the same type.
+
+There is a comment in file 'Const.cs, line 137' suggesting that this is
+not going to be the final code, so may be you guys are already aware of
+this issue.
+
+Additional Information:
+Using snapshot of Feb-24-02
+
+Sample code to reproduce the problem:
+
+namespace N1
+{
+ public enum A
+ {
+ A_1, A_2, A_3
+ }
+
+ public class B
+ {
+ const A b = A.A_1;
+ }
+}
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="000020.html">[Mono-bugs] [Bug 21070] New - Crash compiling Enum when values initialized with other enum values.
</A></li>
<LI> Next message: <A HREF="000022.html">[Mono-bugs] [Bug 21076] New - Problem with the types lookup
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#21">[ date ]</a>
<a href="thread.html#21">[ thread ]</a>
<a href="subject.html#21">[ subject ]</a>
<a href="author.html#21">[ author ]</a>
</LI>
</UL>
</body></html>