mail-archives/mono-bugs/2003-July/006128.html

110 строки
3.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 42570][Wis] Changed - const defined item not defined
</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="006127.html">
<LINK REL="Next" HREF="006129.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 42570][Wis] Changed - const defined item not defined
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 42570][Wis] Changed - const defined item not defined">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>Fri, 4 Jul 2003 16:03:05 -0400 (EDT)</I>
<P><UL>
<LI> Previous message: <A HREF="006127.html">[Mono-bugs] [Bug 40833][Min] Changed - Nested Namespace problem
</A></li>
<LI> Next message: <A HREF="006129.html">[Mono-bugs] [Bug 28562][Wis] Changed - type info lost with enum arguments to a custom attr that takes an object
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6128">[ date ]</a>
<a href="thread.html#6128">[ thread ]</a>
<a href="subject.html#6128">[ subject ]</a>
<a href="author.html#6128">[ 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:miguel@ximian.com.">miguel@ximian.com.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=42570">http://bugzilla.ximian.com/show_bug.cgi?id=42570</A>
--- shadow/42570 Thu May 8 02:57:10 2003
+++ shadow/42570.tmp.21563 Fri Jul 4 16:03:05 2003
@@ -1,14 +1,14 @@
Bug#: 42570
Product: Mono/MCS
Version: unspecified
-OS:
+OS: unknown
OS Details:
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: FIXED
+Severity: Unknown
Priority: Wishlist
Component: Misc
AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
ReportedBy: <A HREF="mailto:max.stekelenburg@planet.nl">max.stekelenburg@planet.nl</A>
QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
TargetMilestone: ---
@@ -26,6 +26,27 @@
class test {
static void Main(){
const int r=2;
const int bs=r*2+1;
}
}
+
+------- Additional Comments From <A HREF="mailto:miguel@ximian.com">miguel@ximian.com</A> 2003-07-04 16:03 -------
+Thanks for the bug report, the fix is a one-line change:
+
+Index: statement.cs
+===================================================================
+RCS file: /cvs/public/mcs/mcs/statement.cs,v
+retrieving revision 1.199
+retrieving revision 1.200
+diff -u -u -r1.199 -r1.200
+--- statement.cs 2 Jul 2003 18:57:01 -0000 1.199
++++ statement.cs 4 Jul 2003 20:07:20 -0000 1.200
+@@ -3356,6 +3356,7 @@
+ if (cv == null)
+ continue;
+
++ ec.CurrentBlock = this;
+ Expression e = cv.Resolve (ec);
+ if (e == null)
+ continue;
+
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="006127.html">[Mono-bugs] [Bug 40833][Min] Changed - Nested Namespace problem
</A></li>
<LI> Next message: <A HREF="006129.html">[Mono-bugs] [Bug 28562][Wis] Changed - type info lost with enum arguments to a custom attr that takes an object
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#6128">[ date ]</a>
<a href="thread.html#6128">[ thread ]</a>
<a href="subject.html#6128">[ subject ]</a>
<a href="author.html#6128">[ author ]</a>
</LI>
</UL>
</body></html>