[Mono-bugs] [Bug 383595] New: Mono.CSharp.InternalErrorException: System. IndexOutOfRangeException when using generics and overriding

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 25 00:54:23 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=383595


           Summary: Mono.CSharp.InternalErrorException:
                    System.IndexOutOfRangeException when using generics and
                    overriding
           Product: Mono: Compilers
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gburt at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


I'm on openSUSE Factory.

$ gmcs --version
Mono C# compiler version 1.9.1.0

$ gmcs -target:library TestGenericsOverrideBug.cs

Unhandled Exception: Mono.CSharp.InternalErrorException:
TestGenericsOverrideBug.cs(13,26): Class2<T>.Method1<U,V>(U) --->
System.IndexOutOfRangeException: Array index is out of range.
  at Mono.CSharp.TypeParameter+InflatedConstraints.inflate (System.Type t)
[0x00000] 
  at Mono.CSharp.TypeParameter+InflatedConstraints.inflate (System.Type t)
[0x00000] 
  at Mono.CSharp.TypeParameter+InflatedConstraints..ctor
(Mono.CSharp.GenericConstraints gc, System.Type[] dargs) [0x00000] 
  at Mono.CSharp.TypeParameter+InflatedConstraints..ctor
(Mono.CSharp.GenericConstraints gc, System.Type declaring) [0x00000] 
  at Mono.CSharp.TypeParameter.DefineType (IResolveContext ec,
System.Reflection.Emit.MethodBuilder builder, System.Reflection.MethodInfo
implementing, Boolean is_override) [0x00000] 
  at Mono.CSharp.GenericMethod.DefineType (Mono.CSharp.EmitContext ec,
System.Reflection.Emit.MethodBuilder mb, System.Reflection.MethodInfo
implementing, Boolean is_override) [0x00000] 
  at Mono.CSharp.MethodData.Define (Mono.CSharp.DeclSpace parent) [0x00000] 
  at Mono.CSharp.MethodOrOperator.Define () [0x00000] 
  at Mono.CSharp.Method.Define () [0x00000] 
  at Mono.CSharp.TypeContainer+MemberCoreArrayList.DefineContainerMembers ()
[0x00000] --- End of inner exception stack trace ---

  at Mono.CSharp.TypeContainer+MemberCoreArrayList.DefineContainerMembers ()
[0x00000] 
  at Mono.CSharp.TypeContainer.DefineContainerMembers
(Mono.CSharp.MemberCoreArrayList mcal) [0x00000] 
  at Mono.CSharp.Class.DefineContainerMembers (Mono.CSharp.MemberCoreArrayList
list) [0x00000] 
  at Mono.CSharp.TypeContainer.DoDefineMembers () [0x00000] 
  at Mono.CSharp.Class.DoDefineMembers () [0x00000] 
  at Mono.CSharp.TypeContainer.DefineMembers () [0x00000] 
  at Mono.CSharp.RootContext.PopulateTypes () [0x00000] 
  at Mono.CSharp.Driver.MainDriver (System.String[] args) [0x00000] 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list