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

          Issue ID: 22924
           Summary: importC: boolean expression result should be int
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ImportC
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

_Static_assert(sizeof(!0) == 4, ""); // fails, dmd gives 1 as the size

printing the type with a D function like "void pty(T)(T
t){writeln(T.stringof);}" gives "bool"

all the operators that return a boolean in C use int as the type

--

Reply via email to