[Mono-bugs] [Bug 379348] New: gmcs generates code that crashes mono with delegates and generic types

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Apr 11 16:28:12 EDT 2008


           Summary: gmcs generates code that crashes mono with delegates and
                    generic types
           Product: Mono: Compilers
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: rkumpera at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

GMCS don't emit the right code for generic arguments with constraints.

A generic argument with constraints must be boxed before used in place of one
of it's constraints otherwise it will crash the runtime.

Remember that a generic argument can be either a valuetype or a reference type,
so    all code paths that require it to be a reference type must box it first.

This is specially important as valuetypes can implement interfaces and right
now you cannot use then with arguments contrainted to an inteface.

Besides that, the code generated by current gmcs is not verifiable, which means
it won't work with MoonLight.

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