[Mono-bugs] [Bug 53973][Nor] New - mcs throws exception

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 6 Feb 2004 09:46:05 -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 lobbin@localhost.nu.


--- shadow/53973	2004-02-06 09:46:05.000000000 -0500
+++ shadow/53973.tmp.6654	2004-02-06 09:46:05.000000000 -0500
@@ -0,0 +1,70 @@
+Bug#: 53973
+Product: Mono/Compilers
+Version: unspecified
+OS Details: Gentoo Linux
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: lobbin@localhost.nu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: mcs throws exception
+Description of Problem:
+mcs crashes when I try to compile my application.
+Steps to reproduce the problem:
+1. Compile attached test-case with mcs.
+Actual Results:
+lobbin@pylver src $ mcs -r:gtk-sharp -r:gnome-sharp -r:glade-sharp
+-r:gdk-sharp test.cs 
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: test.cs: (21)
+                     Block being compiled: [test.cs: (22),test.cs: (26)]
+System.ArgumentNullException: null key
+Parameter name: key
+        in Hashtable.Find (object)
+        in Hashtable.GetImpl (object)
+        in Hashtable.get_Item (object)
+        in Invocation.GetParameterData (System.Reflection.MethodBase)
+        in DelegateCreation.Error_NoMatchingMethodForDelegate
+(Mono.CSharp.MethodGroupExpr, System.Type, System.Reflection.MethodBase,
+        in DelegateCreation.ResolveMethodGroupExpr
+(Mono.CSharp.EmitContext, Mono.CSharp.MethodGroupExpr)
+        in NewDelegate.DoResolve (Mono.CSharp.EmitContext)
+        in Expression.Resolve (Mono.CSharp.EmitContext,
+        in Expression.Resolve (Mono.CSharp.EmitContext)
+        in New.DoResolve (Mono.CSharp.EmitContext)
+        in Expression.Resolve (Mono.CSharp.EmitContext,
+        in Expression.Resolve (Mono.CSharp.EmitContext)
+        in CompoundAssign.DoResolve (Mono.CSharp.EmitContext)
+        in Expression.Resolve (Mono.CSharp.EmitContext,
+        in Expression.Resolve (Mono.CSharp.EmitContext)
+        in ExpressionStatement.ResolveStatement (Mono.CSharp.EmitContext)
+        in StatementExpression.Resolve (Mono.CSharp.EmitContext)
+        in Block.Resolve (Mono.CSharp.EmitContext)
+        in EmitContext.EmitTopBlock (Mono.CSharp.Block,
+Mono.CSharp.InternalParameters, Mono.CSharp.Location)
+Expected Results:
+Compilation succeeded
+How often does this happen? 
+Additional Information:
+lobbin@pylver src $ mcs --version
+Mono C# compiler version