[Mono-bugs] [Bug 77488][Nor] New - [gmcs] Exception when compiling (NotSupportedException)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Feb 7 04:02:13 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 anders at tlabwest.se.


--- shadow/77488	2006-02-07 04:02:13.000000000 -0500
+++ shadow/77488.tmp.13715	2006-02-07 04:02:13.000000000 -0500
@@ -0,0 +1,81 @@
+Bug#: 77488
+Product: Mono: Compilers
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: anders at tlabwest.se               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: [gmcs] Exception when compiling (NotSupportedException)
+Description of Problem:
+Compiling code (see attached file) with a generic type parameter with both
+new() constraint and naked type constraint results in an exception.
+Steps to reproduce the problem:
+1. gmcs testcase.cs
+Actual Results:
+Exception caught by the compiler while compiling:
+   Block that caused the problem begin at: testcase.cs(24,12):
+                     Block being compiled:
+System.NotSupportedException: Operation is not supported.
+Unhandled Exception: System.NotSupportedException: Operation is not supported.
+in <0x00014>
+System.Reflection.Emit.GenericTypeParameterBuilder:GetInterfaces ()
+in <0x000c3> Mono.CSharp.TypeManager:ExpandInterfaces (System.Type[]
+in <0x000c1> Mono.CSharp.TypeParameter:FindMembers (MemberTypes mt,
+BindingFlags bf, System.Reflection.MemberFilter filter, System.Object criteria)
+in <0x001dc> Mono.CSharp.TypeManager:MemberLookup_FindMembers (System.Type
+t, MemberTypes mt, BindingFlags bf, System.String name, System.Boolean
+in <0x001ad> Mono.CSharp.TypeManager:RealMemberLookup (System.Type
+invocation_type, System.Type qualifier_type, System.Type queried_type,
+MemberTypes mt, BindingFlags original_bf, System.String name, IList
+in <0x0001f> Mono.CSharp.TypeManager:MemberLookup (System.Type
+invocation_type, System.Type qualifier_type, System.Type queried_type,
+MemberTypes mt, BindingFlags original_bf, System.String name, IList
+in <0x00038> Mono.CSharp.Expression:MemberLookup (Mono.CSharp.EmitContext
+ec, System.Type container_type, System.Type qualifier_type, System.Type
+queried_type, System.String name, MemberTypes mt, BindingFlags bf, Location
+in <0x0004b> Mono.CSharp.Expression:MemberLookup (Mono.CSharp.EmitContext
+ec, System.Type qualifier_type, System.Type queried_type, System.String
+name, Location loc)
+in <0x00244> Mono.CSharp.MemberAccess:DoResolve (Mono.CSharp.EmitContext
+ec, Mono.CSharp.Expression right_side)
+in <0x0000f> Mono.CSharp.MemberAccess:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000e3> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00083> Mono.CSharp.Invocation:DoResolve (Mono.CSharp.EmitContext ec)
+in <0x000e3> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec,
+ResolveFlags flags)
+in <0x00012> Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00013> Mono.CSharp.ExpressionStatement:ResolveStatement
+(Mono.CSharp.EmitContext ec)
+in <0x0001f> Mono.CSharp.StatementExpression:Resolve
+(Mono.CSharp.EmitContext ec)
+in <0x001d9> Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext ec)
+in <0x00122> Mono.CSharp.EmitContext:ResolveTopBlock
+(Mono.CSharp.EmitContext anonymous_method_host, Mono.CSharp.ToplevelBlock
+block, Mono.CSharp.Parameters ip, IMethodData md, System.Boolean unreachable)
+Expected Results:
+Clean compile without exceptions, errors or warnings
+How often does this happen? 

More information about the mono-bugs mailing list