[Mono-bugs] [Bug 77250][Nor] New - [GMCS] System.NotSupportedException in simple generic code

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jan 13 17:23:20 EST 2006

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 malekith at pld-linux.org.


--- shadow/77250	2006-01-13 17:23:20.000000000 -0500
+++ shadow/77250.tmp.28445	2006-01-13 17:23:20.000000000 -0500
@@ -0,0 +1,67 @@
+Bug#: 77250
+Product: Mono: Compilers
+Version: 1.1
+OS Details: amd64 pld linux
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: malekith at pld-linux.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: [GMCS] System.NotSupportedException in simple generic code
+Description of Problem:
+Please try to compile the attached program. The result is:
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: foo.cs(39,27):
+                     Block being compiled: [foo.cs(41,16):,Internal(1,1):]
+System.NotSupportedException: Operation is not supported.
+Unhandled Exception: System.NotSupportedException: Operation is not supported.
+in <0x00029> System.Reflection.MethodBase:GetGenericArguments ()
+in <0x004d2> Mono.CSharp.TypeManager:CSharpSignature
+(System.Reflection.MethodBase mb, Boolean show_accessor)
+in <0x00013> Mono.CSharp.TypeManager:CSharpSignature
+(System.Reflection.MethodBase mb)
+in <0x00068> Mono.CSharp.Invocation:Error_InvalidArguments (Location loc,
+Int32 idx, System.Reflection.MethodBase method, System.Type delegate_type,
+Mono.CSharp.Argument a, ParameterData expected_par)
+in <0x0031f> Mono.CSharp.Invocation:VerifyArgumentsCompat
+(Mono.CSharp.EmitContext ec, System.Collections.ArrayList Arguments, Int32
+arg_count, System.Reflection.MethodBase method, Boolean
+chose_params_expanded, System.Type delegate_type, Boolean may_fail,
+Location loc)
+in <0x00602> Mono.CSharp.Invocation:OverloadResolve
+(Mono.CSharp.EmitContext ec, Mono.CSharp.MethodGroupExpr me,
+System.Collections.ArrayList Arguments, Boolean may_fail, Location loc)
+in <0x007ee> Mono.CSharp.New:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x00134> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00028> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x0010d> Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x00134> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00028> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x0002c> Mono.CSharp.ExpressionStatement:ResolveStatement
+(Mono.CSharp.EmitContext ec)
+in <0x00037> Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext ec)
+in <0x00258> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00258> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x001de> Mono.CSharp.EmitContext:ResolveTopBlock
+(Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock
+block, Mono.CSharp.Parameters ip, IMethodData md, System.Boolean unreachable)
+Additional Information:
+I'm running 1.1.11.

More information about the mono-bugs mailing list