[Mono-bugs] [Bug 64330][Nor] New - two unsafe code constructs don't compile

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 27 Aug 2004 10:26:20 -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 jeroen@sumatra.nl.

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

--- shadow/64330	2004-08-27 10:26:20.000000000 -0400
+++ shadow/64330.tmp.10228	2004-08-27 10:26:20.000000000 -0400
@@ -0,0 +1,40 @@
+Bug#: 64330
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+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
+
+using System.Runtime.InteropServices;
+
+struct MyStruct
+{
+  internal int p;
+}
+
+class test
+{
+  int bar;
+
+  unsafe void Method1()
+  {
+    fixed(void* p = &bar) {}
+    fixed(void* p = &bar) {}
+  }
+
+  unsafe void Method2(MyStruct* p)
+  {
+    void* pv = &p->p;
+  }
+}