[Issue 8496] New: (Regression 2.060) Assignment of function literal to function pointer variable with non-D linkage broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 2 13:00:59 PDT 2012


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: nobody at puremagic.com
        ReportedBy: alex at lycus.org


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

alexrp at 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 at 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: -------


More information about the Digitalmars-d-bugs mailing list