[Issue 23752] New: ImportC: can't take address of dereferenced void pointer
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Feb 28 12:06:09 UTC 2023
    
    
  
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 at puremagic.com
          Reporter: dkorpel at 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
```
--
    
    
More information about the Digitalmars-d-bugs
mailing list