[Mono-bugs] [Bug 64330][Nor] Changed - `fixed' should create its own scope

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 29 Aug 2004 15:20:40 -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 bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=64330

--- shadow/64330	2004-08-27 10:26:20.000000000 -0400
+++ shadow/64330.tmp.14289	2004-08-29 15:20:40.000000000 -0400
@@ -1,23 +1,23 @@
 Bug#: 64330
 Product: Mono: Compilers
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: C#
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: jeroen@sumatra.nl               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: two unsafe code constructs don't compile
+Summary: `fixed' should create its own scope
 
 using System.Runtime.InteropServices;
 
 struct MyStruct
 {
   internal int p;
@@ -35,6 +35,19 @@
 
   unsafe void Method2(MyStruct* p)
   {
     void* pv = &p->p;
   }
 }
+
+------- Additional Comments From bmaurer@users.sf.net  2004-08-29 15:20 -------
+Method 1 is a dup of bug 60620.
+
+Method 2 is new. A simpler test case:
+
+unsafe class X {
+	static void Main () {
+		int x;
+		fixed (void* p = &x) {}
+		fixed (void* p = &x) {}
+	}
+}