[Issue 23864] importC fails on assert( pointer != NULL )

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 29 06:52:34 UTC 2023


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

--- Comment #2 from emteria_wegwerf at web.de ---
I get

$ dmd test.i
test.c(8): Error: expression expected, not `{`
test.c(8): Error: found `if` when expecting `)`
test.c(8): Error: found `;` when expecting `)`
test.c(8): Error: found `else` when expecting `;` following statement
test.c(8): Error: no type for declarator before `)`
test.c(10): Error: no type for declarator before `return`
test.c(11): Error: no type for declarator before `}`


This also happens if I replace NULL with 0 in test.c. After that, gcc compiles
the (regenerated) test.i

--


More information about the Digitalmars-d-bugs mailing list