[Issue 22749] New: importC: C11 does not allow taking the address of a bit-field
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Feb  8 16:57:01 UTC 2022
    
    
  
https://issues.dlang.org/show_bug.cgi?id=22749
          Issue ID: 22749
           Summary: importC: C11 does not allow taking the address of a
                    bit-field
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org
DMD happily compiles this C11 code.
---
struct bit
{
  int v : 1;
};
int main()
{
  struct bit b;
  void* ptr = &b.v;
}
---
--
    
    
More information about the Digitalmars-d-bugs
mailing list