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

    <tr>
        <th>Summary</th>
        <td>
            [Clang][C++17] CTAD doesn't work for static inline data members when initializer is not used
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          frederick-vs-ja
      </td>
    </tr>
</table>

<pre>
    In the following example, IIUC the declaration of `Test::y` is also an initializing declaration that specifies default-initialization, as `y` is inline (see also [N4868 [dcl.init.general]/21](https://timsong-cpp.github.io/cppwp/n4868/dcl.init.general#21)).
```C++
template<typename T = int>
struct U {};

struct Test {
    static inline U x{}; // OK
    static inline U y;   // Rejected by Clang and MSVC
};
```
Currently Clang incorrectly rejects this example ([Godbolt link](https://godbolt.org/z/YW15vde8b)).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0U02P4zYM_TX0hUgg01_JwYdJUheDoi3QzrToUbZpRzuyZEjyZLO_vpCTbKfbLiBAtvj4yMcP6b0aDXMNxQGKUyKXcLauHhz37FT3tnn3m08yaW1_rZ8NhjPjYLW2F2VG5M9ymjUDHfH5-fW4WnvutHQyKGvQDgileGEfIHuC7OkKpUDlUWpvURpURgUltfoSyT46hrMM6Gfu1KDYY8-DXHTYfMWvqBhW-hjhwauMVoYRaOeZb1GgOPyS78pd_Og7vY0U25ENO6mhOAE1lK737hzC7GOe1AA1QU3emnHTzfN2VOG8tFtlgZpuni8zUGMiKVDzH07KKAXaA-23IE4gnqAUt3MEOsSzvgaeZi0DQ3YM15mNnBhfELITKhMg--GG8sEtXcBXhOoA1Qmyu_e_rLG-K2B9RET0QQbVPcrxip-_uuNNHf760_fR14jDB_I3_sRd4B7bKx61NCNK0-PPv_9xvKfyMa2H1NvvcXGOTdAPR2U66xx38cWttB7DWfnHHMXGQXH40fat1QG1Mm__15rxZt9aNwI1X4Cav_5Mi_eed-298ElfZ_0-28uE67QSZVXu96VIznUxDGmXl7Jq00EOVS6KYqi43PVlnu0prRJVk6BckEhFmZdCbIs9MaVlylnXkuQUcsGTVHqr9fsUU0iU9wvXO0F5lWjZsvbrLhF1UTQQxbVydcRv2mX0kAutfPD_MAQV9LqAa5mi5OJwH5a0guKEx5enE_aWvQGqAl6se8PBum8618sgceKpZefxcuYP-8UuroexARfPfbI4XX9T09uId3YCamJi92szOxsbBdSsOj1Qs0r9OwAA__8d4k4l">