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

    <tr>
        <th>Summary</th>
        <td>
            alignas not fully implemented
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    This use of alignas is not accepted by Clang 5.0.2.

        template <
                typename T
                >
        struct CreateStatic {
                static T * Create() {
                        static char alignas(T) staticMemory_[sizeof(T)];
                        return new (&staticMemory_) T;
                        }

                static void Destroy(T * const p) {
                        p->~T();
                        }
                };

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Uj2vnDAQ_DVLYx3ijMG4cHEfjy5NQh8ZWMCRwcg2F5Eivz3iPt69XKLXgDw7O7uzGuW97idECdkRsnOkljBYJ0unPLqv1vuotu0qq0F7sngktiPK6H5SnmhPJhuIahqcA7akXsnJqKknWZzENIbkDMnh8RUBx9mogATS0zu44euMkxqRVB9RSN_enz64pQnk5FAF_BZU0A0BfvxI9ze0IkAPdyLQAqh4JT65zaDcwwrQotrIt9IXHK1bv0N29PoX2u5ehewM6auYw7C4iUz4k1wH5n9LUEGqf5uAn1-O81zrYnVLzuiDs-s2-OqosZMPZP6_n3kH6dvv6ub302GP54MTtTJtRSpUhHLP95znNBM8GiTrWkQmWEfrbN80BUsx41nT5XlORSGSSEuaUJbkCd_TfZ7mMRYMuShYrRJacCaAJTgqbWJjLmNsXR9p7xeUgnHGI6NqNP4aOUq3212LQOmWQCe3nl299B5YYrQP_qkSdDAoHwnc4tctxqxEj7PBEaeAbbQ4I4cQZg_pAWgJtOx1GJY6buwItNy07r_d7OwPbALQ8rqBB1reNrxI-icAAP__fA3mGA">