digitalmars.D.bugs - [Issue 23752] New: ImportC: can't take address of dereferenced void
- d-bugmail puremagic.com (24/24) Feb 28 2023 https://issues.dlang.org/show_bug.cgi?id=23752
https://issues.dlang.org/show_bug.cgi?id=23752 Issue ID: 23752 Summary: ImportC: can't take address of dereferenced void pointer Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: ImportC Severity: normal Priority: P3 Component: dmd Assignee: nobody puremagic.com Reporter: dkorpel live.nl Found while compiling the tree-sitter run-time. ``` void *c = &*((void*)(0)); ``` clang and gcc compile this, dmd outputs: ``` Error: expression `*cast(void*)0` is `void` and has no value ``` --
Feb 28 2023