https://d.puremagic.com/issues/show_bug.cgi?id=11906

           Summary: Compiler assertion when comparing function pointers
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Cameron Shea <[email protected]> 2014-01-11 15:30:04 
PST ---
module main;
import std.c.windows.windows;

void main()
{
    extern(Windows) HMODULE function(LPCSTR) f;
    assert(f != &GetModuleHandleA);
}

> dmd -g -debug -c main.d -ofobj\Debug\main.obj
Assertion failure: '0' on line 1562 in file 'cast.c'

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

Reply via email to