http://d.puremagic.com/issues/show_bug.cgi?id=8496

           Summary: (Regression 2.060) Assignment of function literal to
                    function pointer variable with non-D linkage broken
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: a...@lycus.org


--- Comment #0 from Alex R�nne Petersen <a...@lycus.org> 2012-08-02 22:00:58 
CEST ---
This used to work in 2.059.

alexrp@alexrp ~/Projects/tests $ dmd test.d
test.d(8): Error: cannot implicitly convert expression (__lambda1) of type void
function() pure nothrow @safe to extern (C) void function()
alexrp@alexrp ~/Projects/tests $ cat test.d
alias extern (C) void function() Func;

void main()
{
    Func f;

    f = ()
    {
    };
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to