February 28, 2023 [Issue 23752] New: ImportC: can't take address of dereferenced void pointer | ||||
---|---|---|---|---|
| ||||
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 ``` -- |
Copyright © 1999-2021 by the D Language Foundation