www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22275] New: importC: Error: incompatible types for '(dest)

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

          Issue ID: 22275
           Summary: importC: Error: incompatible types for '(dest) !is
                    (buf)': 'char*' and 'char[1]'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

void test(char *dest)
{
    char buf[1];
    if (dest != buf)
        return;
}

--
Sep 04