[Mono-bugs] [Bug 42570][Wis] Changed - const defined item not defined

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 4 Jul 2003 16:03:05 -0400 (EDT)


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=42570

--- 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: mono-bugs@ximian.com                            
 ReportedBy: max.stekelenburg@planet.nl               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -26,6 +26,27 @@
 class test {
 	static void Main(){
 		const int r=2;
 		const int bs=r*2+1;
 	}
 }
+
+------- Additional Comments From miguel@ximian.com  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;
+