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

    <tr>
        <th>Summary</th>
        <td>
            constinit does not accept default initialisation
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            c++20,
            clang:frontend
      </td>
    </tr>

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

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

<pre>
    GCC: `g++.dg/cpp2a/constinit4.C`
```cpp
struct S { };
constinit extern S s;
constinit S s2 = { };
struct T {
  int i;
};
constinit T t; // error: variable does not have a constant initializer

struct U : T {
  int j;
};
constinit U u; // error: variable does not have a constant initializer
```
https://godbolt.org/z/qcG73n4aq

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyskt9uozwQxZ9muBkVOWP-lAsuQiL6AGkfwAaHuHJsapuoX5_-k0M2WW0r7c1KSIY5nh9nji1C0JNVqoWyg3KfiSWenG-X8NmUmXTjf-3Lbgd8i1CxCagD6vJxAuqHeSaRVmdD1FbHIt9BxYDtgW3Ty_UZ5nmthOiXIeIBoe4Q6j3wbhXu_ag-o_IWDxh-EA8YCIHvv_XfwK9JWCuI2kbU9x0__-0VI_AOgXqgHpX3zqcxL8JrIY3C0amA1kU8iYtCgddOkcBWRy2M_lL-xv_dxxsmyjc3739x84bLv3LzK_r18xTjHIBvV_LkRulMzJ1PR_gF1H8MLzW3hfhYt2djy8eGNyJT7aZ6LhrOmqLJTi17LllR1AVrxKBkLY5cScZLVlYkm2asM90SI85KKjZERHVeSlYeBVWyqjgbRQkFU2ehTW7M5ZwcZDqERbUVNRueGSGVCddbSDSsF40YEAHtUsUIOwHfHr2zUdkxCeU-822CPcllClAwo0MMD3zU0aj2kfE9QzEMao44qqNYzCPCIKJ2Nlu8af9ITcfTIvPBnYH6hL8tT7N372qIQP11lADUX6f5PwAA__8cr_-9">