[Mono-bugs] [Bug 577984] Ahead-of-time compiler getting "Can't handle as return value 0x1e"

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 10 19:41:20 EST 2010


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

http://bugzilla.novell.com/show_bug.cgi?id=577984#c2


--- Comment #2 from Miguel de Icaza <miguel at novell.com> 2010-02-11 00:41:20 UTC ---
Here is a simpler test case that does not require fsharp, to reproduce on
x86-64 do:

ilasm sample.il
mono --aot sample.exe

assembly extern mscorlib
{
  .ver 2:0:0:0
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
}
assembly 'a'
{
  .custom instance void class
[mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'()
=  (
        01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   // ....T..WrapNonEx
        63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01       ) // ceptionThrows.

  .hash algorithm 0x00008004
  .ver  0:0:0:0
}
module a.exe // GUID = {E10BF114-AD9E-4E60-B587-2402E0DB9D86}

  .class private auto ansi beforefieldinit X extends [mscorlib]System.Object
  {

    .method public hidebysig  specialname  rtspecialname instance default void
'.ctor' ()  cil managed 
    {
    .maxstack 8
    IL_0000:  ldarg.0 
    IL_0001:  call instance void object::'.ctor'()
    IL_0006:  ret 
    } 

    .method private static  hidebysig default void Main ()  cil managed 
    {
    .entrypoint
    .maxstack 8
    IL_0000:  ret 
    } 

    .method public static  specialname 
           default !!T& op_AddressOf<T> (!!T obj)  cil managed 
    {
        .maxstack 3
        IL_0001:  ldstr "Nothing"
        IL_0006:  newobj instance void class
[mscorlib]System.NotSupportedException::'.ctor'()
        IL_000b:  throw 
    } 
  }

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


More information about the mono-bugs mailing list