[Mono-bugs] [Bug 56148][Nor] New - mcs bails with InvalidCastException while compiling attached file

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 29 Mar 2004 00:43:27 -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 vladimir@pobox.com.

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

--- shadow/56148	2004-03-29 00:43:27.000000000 -0500
+++ shadow/56148.tmp.21612	2004-03-29 00:43:27.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 56148
+Product: Mono: Compilers
+Version: unspecified
+OS: Red Hat 9.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vladimir@pobox.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mcs bails with InvalidCastException while compiling attached file
+
+Trying to compile the attached file with CVS mcs on 28 Mar results in:
+
+Unhandled Exception: System.InvalidCastException: Cannot cast from source
+type to destination type.
+in [0x001ea] (at /home/vladimir/proj/mono-cvs/mcs/mcs/attribute.cs:1131)
+Mono.CSharp.Attribute:DefinePInvokeMethod
+(Mono.CSharp.EmitContext,System.Reflection.Emit.TypeBuilder,string,System.Reflection.MethodAttributes,System.Type,System.Type[])
+in [0x00308] (at /home/vladimir/proj/mono-cvs/mcs/mcs/class.cs:3523)
+Mono.CSharp.MethodData:Define (Mono.CSharp.TypeContainer)
+in [0x00071] (at /home/vladimir/proj/mono-cvs/mcs/mcs/class.cs:2777)
+Mono.CSharp.Method:Define (Mono.CSharp.TypeContainer)
+in [0x00095] (at /home/vladimir/proj/mono-cvs/mcs/mcs/class.cs:928)
+Mono.CSharp.TypeContainer:DefineMembers
+(System.Collections.ArrayList,System.Reflection.MemberInfo[])
+in [0x002e9] (at /home/vladimir/proj/mono-cvs/mcs/mcs/class.cs:1147)
+Mono.CSharp.TypeContainer:DoDefineMembers ()
+in [0x00019] (at /home/vladimir/proj/mono-cvs/mcs/mcs/class.cs:1036)
+Mono.CSharp.TypeContainer:DefineMembers (Mono.CSharp.TypeContainer)
+in [0x0010a] (at /home/vladimir/proj/mono-cvs/mcs/mcs/rootcontext.cs:625)
+Mono.CSharp.RootContext:PopulateTypes ()
+in [0x00524] (at /home/vladimir/proj/mono-cvs/mcs/mcs/driver.cs:1445)
+Mono.CSharp.Driver:MainDriver (string[])
+in [0x00001] (at /home/vladimir/proj/mono-cvs/mcs/mcs/driver.cs:260)
+Mono.CSharp.Driver:Main (string[])