[Mono-bugs] [Bug 29376][Nor] New - pinvoke7.cs doesn't compile

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
23 Aug 2002 15:37:57 -0000

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


--- shadow/29376	Fri Aug 23 11:37:57 2002
+++ shadow/29376.tmp.32620	Fri Aug 23 11:37:57 2002
@@ -0,0 +1,38 @@
+Bug#: 29376
+Product: Mono/MCS
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lupus@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: pinvoke7.cs doesn't compile
+mono/mono/tests/pinvoke7.cs doesn't compile with mcs on either runtime.
+It compiles fine with csc.
+mcs dies with the following exception:
+Unhandled Exception: System.NullReferenceException: A null value was found
+where an object instance was required
+in <0x000a4> 00 Mono.CSharp.MyStructInfo:.ctor (System.Type)
+in <0x00114> 00 Mono.CSharp.MyStructInfo:GetStructInfo (System.Type)
+in <0x0008e> 00 Mono.CSharp.VariableInfo:Resolve (Mono.CSharp.DeclSpace)
+in <0x0010a> 00 Mono.CSharp.Block:UpdateVariableInfo (Mono.CSharp.EmitContext)
+in <0x00040> 00 Mono.CSharp.Block:EmitMeta
+in <0x00073> 00 Mono.CSharp.EmitContext:EmitTopBlock
+in <0x0057b> 00 Mono.CSharp.MethodData:Emit
+in <0x0001f> 00 Mono.CSharp.Method:Emit (Mono.CSharp.TypeContainer)
+in <0x001d0> 00 Mono.CSharp.TypeContainer:Emit ()
+in <0x004f5> 00 Mono.CSharp.RootContext:EmitCode ()
+in <0x00833> 00 Mono.CSharp.Driver:MainDriver (string[])
+in <0x00019> 00 Mono.CSharp.Driver:Main (string[])