<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/95032>95032</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang drops `alignsas` on struct field
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ahatanak
      </td>
    </tr>
</table>

<pre>
    $ cat test.c
```
#include <assert.h>

struct S {
  alignas(16) char bytes[16];
};

static_assert(alignof(struct S) == 16);
```

$ clang -std=c2x test.c -c -o /dev/null
<source>:7:15: error: static assertion failed due to requirement '_Alignof(struct S) == 16'
    7 | static_assert(alignof(struct S) == 16);
      | ^~~~~~~~~~~~~~~~~~~~~~~
<source>:7:33: note: expression evaluates to '1 == 16'
    7 | static_assert(alignof(struct S) == 16);
      | ~~~~~~~~~~~~~~~~~~^~~~~
1 error generated.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0k81upDoQhZ-m2JQamTJ_vWDRSYcXuA8Que1q8L1u3Nc2rWQzzz7iJ8polNEsRmMhMFAcn-_gUjHaYWLuoHqC6pypOY0-dGpUSU3qv-zizXsHVKJWCRPHlGsQZxAnqMV-bLck7aTdbBhBPqsYOaR8BPmyv17PMYVZJ_wHoXnaniAqZ4dJRaC2qIGOqEcV8PKeOEL1VNRQnUHuxdD8MN8FVbL6dVsOqF3F_BWo_VhqkQR5BnnGVf9T4Cf_O0WJ2qlpwENMBuRZ09tOjQeNB49AveEHUD_Nzu0fyefo56B5oZWnBuSpqECekEPwYZlsNnGzaf2EV2UdGzQzY_IY-P_ZBr7xlBCoeT39jqL5CA-xQWie8Q9ywHUsIlC9fPty_BJTyoVu8olX3Ld74BgXPn4oN6vEccEDaoq_7_4L2xvPVlhsfwMHnjioxCbPTCfNUR5Vxl3RFK2oRCOKbOxkrRWLmo_XgrSqmI5XvuiW2VStUMJktiNBpagLQaJoqchLoYuykqaWylRSKigF35R1uXOPW-7DkNkYZ-6OlZCUOXVhF9eGI1p3GxAtvRe6pf5wmYcIpXA2pvipkGxy3G2b0wR_jwi1WJOKKkIt0E-4x3W17Ew2B9eNKd0jyBNQD9QPNo3zJdf-BtQvwvvlcA_-X9YJqF99RqB-s_ro6HsAAAD__xiLO6o">