Bug 320267 (MONO77488) - [GMCS] GenericTypeParameterBuilder.GetInterfaces()
Summary: [GMCS] GenericTypeParameterBuilder.GetInterfaces()
Status: RESOLVED FIXED
Alias: MONO77488
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Linux
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-07 11:02 UTC by Anders Lindström
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
testcase.cs (322 bytes, text/plain)
2006-02-07 11:04 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:47:32 UTC


---- Reported by anders@tlabwest.se 2006-02-07 04:02:12 MST ----

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:
[testcase.cs(25,3):,testcase.cs(29,3):]
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[]
base_interfaces)
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
used_cache)
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
almost_match)
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
almost_match)
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
loc)
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? 
Always



---- Additional Comments From anders@tlabwest.se 2006-02-07 04:04:04 MST ----

Created an attachment (id=169234)
testcase.cs




---- Additional Comments From martin@ximian.com 2006-02-08 09:26:59 MST ----

Hari, I'm also stealing this one from you ;-)



---- Additional Comments From martin@ximian.com 2006-02-10 05:22:46 MST ----

Fixed in SVN.

Imported an attachment (id=169234)

Unknown bug field "cf_version_details" encountered while moving bug
   <cf_version_details>1.1.13</cf_version_details>