[Mono-bugs] [Bug 419828] F# on mono fails

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Mar 10 15:37:35 EDT 2009


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

User greenspan.levi at googlemail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=419828#c3


Levi Greenspan <greenspan.levi at googlemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|2.0.x                       |2.2.x




--- Comment #3 from Levi Greenspan <greenspan.levi at googlemail.com>  2009-03-10 13:37:32 MST ---
Another update with F# 1.9.6.2 and mono 2.2:

> let rec map f l =
    match l with
    | [] -> []
    | h::t -> f h :: map f t;;

val map : ('a -> 'b) -> 'a list -> 'b list

* error while converting instructions to code for method: map


error FS0192: internal error: a tailcall must be followed by a return, instrs =
[|I_seqpoint (4,15)-(4,29); I_ldarg 1us;
  I_other Microsoft.FSharp.Compiler.AbstractIL.IL+ExtensionInstr; I_ldarg 1us;
  I_other Microsoft.FSharp.Compiler.AbstractIL.IL+ExtensionInstr;
  I_other Microsoft.FSharp.Compiler.AbstractIL.IL+ExtensionInstr; I_stloc 0us;
  I_ldarg 1us; I_other Microsoft.FSharp.Compiler.AbstractIL.IL+ExtensionInstr;
  I_other Microsoft.FSharp.Compiler.AbstractIL.IL+ExtensionInstr; I_stloc 1us;
  I_arith AI_nop; I_ldarg 0us; I_ldloc 1us;
  I_other Microsoft.FSharp.Compiler.AbstractIL.IL+ExtensionInstr; I_ldarg 0us;
  I_ldloc 0us; I_call (Tailcall,map(...),null);
  I_other Microsoft.FSharp.Compiler.AbstractIL.IL+ExtensionInstr; I_ret;
  I_other Microsoft.FSharp.Compiler.AbstractIL.IL+ExtensionInstr; I_ret|]
Please build a small example that reproduces this problem and report it to
fsbugs at microsoft.com.

-- 
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