www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22262] New: importC: Error: incompatible types for `(buf) is

https://issues.dlang.org/show_bug.cgi?id=22262

          Issue ID: 22262
           Summary: importC: Error: incompatible types for `(buf) is (0)`:
                    `ubyte*` and `int`
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Reduced test:
---
void test(unsigned char *buf)
{
  if (buf == 0)
    return;
}

--
Sep 01