[Mono-bugs] [Bug 491490] [verifier] System.ServiceModel.dll has issues

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 21 19:18:30 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=491490

User rkumpera at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=491490#c3


Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|misc                        |C#
         AssignedTo|rkumpera at novell.com         |mono-bugs at lists.ximian.com
            Product|Mono: Runtime               |Mono: Compilers




--- Comment #3 from Rodrigo Kumpera <rkumpera at novell.com>  2009-04-21 17:18:26 MDT ---
This is a gmcs bug.

It compiles the follow method:
public static int Test<T> (T t) where T : class
{
    return t != default (T) ? 0 : 1;
}

As:

method public static  hidebysig default int32 Test<class T> (!!T t)  cil
managed 
{
    .maxstack 8
    IL_0000:  ldarg.0 
    IL_0001:  brfalse IL_000c

    IL_0006:  ldc.i4.0 
    IL_0007:  br IL_000d

    IL_000c:  ldc.i4.1 
    IL_000d:  ret 
}

You cannot use brtrue/false with an unboxed generic type. gmcs must emit a box
before it.

-- 
Configure bugmail: http://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