[Mono-bugs] [Bug 52651][Wis] New - Error in code block containing fixed and unsafe

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 6 Jan 2004 22:18:43 -0500 (EST)


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 duncan@ximian.com.

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

--- shadow/52651	2004-01-06 22:18:43.000000000 -0500
+++ shadow/52651.tmp.31416	2004-01-06 22:18:43.000000000 -0500
@@ -0,0 +1,36 @@
+Bug#: 52651
+Product: Mono/Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: duncan@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error in code block containing fixed and unsafe
+
+duncan@diphthong:~/src $ mcs /unsafe bug.cs
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: bug.cs: (3)
+                     Block being compiled: [Internal: (1),Internal: (1)]
+System.NullReferenceException: A null value was found where an object
+instance was required
+	in Fixed.DoEmit (Mono.CSharp.EmitContext)
+	in Statement.Emit (Mono.CSharp.EmitContext)
+	in Block.DoEmit (Mono.CSharp.EmitContext)
+	in Block.Emit (Mono.CSharp.EmitContext)
+	in Block.DoEmit (Mono.CSharp.EmitContext)
+	in Block.Emit (Mono.CSharp.EmitContext)
+	in Unsafe.DoEmit (Mono.CSharp.EmitContext)
+	in Statement.Emit (Mono.CSharp.EmitContext)
+	in Block.DoEmit (Mono.CSharp.EmitContext)
+	in Block.Emit (Mono.CSharp.EmitContext)
+	in EmitContext.EmitTopBlock (Mono.CSharp.Block,
+Mono.CSharp.InternalParameters, Mono.CSharp.Location)