mail-archives/mono-bugs/2005-June/029972.html

101 строка
4.4 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 75096][Min] Changed - mcs barfs
InvalidCastException during for(and foreach) access to
illegal constant (CS0133)
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075096%5D%5BMin%5D%20Changed%20-%20mcs%20barfs%0A%09InvalidCastException%20during%20for%28and%20foreach%29%20access%20to%0A%09illegal%20constant%20%28CS0133%29&In-Reply-To=bug-75096%40chernobyl.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="029971.html">
<LINK REL="Next" HREF="029973.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 75096][Min] Changed - mcs barfs
InvalidCastException during for(and foreach) access to
illegal constant (CS0133)</H1>
<B>bugzilla-daemon at bugzilla.ximian.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%2075096%5D%5BMin%5D%20Changed%20-%20mcs%20barfs%0A%09InvalidCastException%20during%20for%28and%20foreach%29%20access%20to%0A%09illegal%20constant%20%28CS0133%29&In-Reply-To=bug-75096%40chernobyl.ximian.com"
TITLE="[Mono-bugs] [Bug 75096][Min] Changed - mcs barfs
InvalidCastException during for(and foreach) access to
illegal constant (CS0133)">bugzilla-daemon at bugzilla.ximian.com
</A><BR>
<I>Fri Jun 3 03:14:29 EDT 2005</I>
<P><UL>
<LI>Previous message: <A HREF="029971.html">[Mono-bugs] [Bug 75136][Maj] New - Add IEnumerable&lt;char&gt; to
System.CharEnumerator
</A></li>
<LI>Next message: <A HREF="029973.html">[Mono-bugs] [Bug 75134][Nor] Changed - CS0233 should be reported
for sizeof without unsafe context
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#29972">[ date ]</a>
<a href="thread.html#29972">[ thread ]</a>
<a href="subject.html#29972">[ subject ]</a>
<a href="author.html#29972">[ 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="http://lists.ximian.com/mailman/listinfo/mono-bugs">rharinath at novell.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=75096">http://bugzilla.ximian.com/show_bug.cgi?id=75096</A>
--- shadow/75096 2005-05-30 07:41:54.000000000 -0400
+++ shadow/75096.tmp.20229 2005-06-03 03:14:29.000000000 -0400
@@ -10,13 +10,12 @@
Component: C#
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">rharinath at novell.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">atsushi at ximian.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at ximian.com</A>
TargetMilestone: ---
URL:
-Cc:
Summary: mcs barfs InvalidCastException during for(and foreach) access to illegal constant (CS0133)
When an expression code block tries to acccess to &quot;invalid&quot; constant array
(which is reported as CS0133), mcs barfs InvalidCastException and
compilation stops unexpectedly.
@@ -79,6 +78,10 @@
Expected Results:
It should just report CS0133 and finish without aborting.
How often does this happen?
consistently.
+
+------- Additional Comments From <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">rharinath at novell.com</A> 2005-06-03 03:14 -------
+Let's defer it for Martin's foreach rewrite.
+
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="029971.html">[Mono-bugs] [Bug 75136][Maj] New - Add IEnumerable&lt;char&gt; to
System.CharEnumerator
</A></li>
<LI>Next message: <A HREF="029973.html">[Mono-bugs] [Bug 75134][Nor] Changed - CS0233 should be reported
for sizeof without unsafe context
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#29972">[ date ]</a>
<a href="thread.html#29972">[ thread ]</a>
<a href="subject.html#29972">[ subject ]</a>
<a href="author.html#29972">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>