[Mono-bugs] [Bug 56016][Nor] New - Exception while compiling

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 24 Mar 2004 18:42:15 -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 juraj@hotfeet.ch.

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

--- shadow/56016	2004-03-24 18:42:15.000000000 -0500
+++ shadow/56016.tmp.1551	2004-03-24 18:42:15.000000000 -0500
@@ -0,0 +1,48 @@
+Bug#: 56016
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: juraj@hotfeet.ch               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Exception while compiling
+
+Description of Problem:
+Compiler throws exception when compiling attached file.
+
+Actual Results:
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: mcs_ref_problem.cs: (7)
+                     Block being compiled: [mcs_ref_problem.cs:
+(7),mcs_ref_problem.cs: (11)]
+System.InvalidCastException: Cannot cast from source type to destination type.
+        in Argument.Emit (Mono.CSharp.EmitContext)
+        in Invocation.EmitArguments (Mono.CSharp.EmitContext,
+System.Reflection.MethodBase, System.Collections.ArrayList)
+        in Invocation.EmitCall (Mono.CSharp.EmitContext, bool, bool,
+Mono.CSharp.Expression, System.Reflection.MethodBase,
+System.Collections.ArrayList, Mono.CSharp.Location)
+        in Invocation.Emit (Mono.CSharp.EmitContext)
+        in Invocation.EmitStatement (Mono.CSharp.EmitContext)
+        in StatementExpression.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) 
+
+
+Expected Results:
+successful compile or nice warning/error message.
+
+How often does this happen? 
+always