[Issue 22246] New: importC: C11 does not allow '_Alignof (expression)'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 27 10:52:32 UTC 2021


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

          Issue ID: 22246
           Summary: importC: C11 does not allow '_Alignof (expression)'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

And yet we silently accept it.

struct A { int a; };

int test()
{
    struct A a;
    return _Alignof(a);
}

--


More information about the Digitalmars-d-bugs mailing list