<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/113652>113652</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] Crash when turn on the modernize-use-designated-initializers check.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lingege321
</td>
</tr>
</table>
<pre>
I am using clangd and get the crash when turn on the modernize-use-designated-initializers check.
The code segment is like following.
The Crash is a forward declaration.
```
struct Crash;
struct Der{
Der(Crash& d):d{d}{}
Crash& d;
};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykksuO4yoQhp8Gb5AjLnaIFyySY1k6-3mBsqlgpjG0AHfU_fQju53p7EdCQFEfdeEHcnY2IGrS3kjbV7CWOSbtXbBoUQpejdF86v8pLHTNLlg6eQjWUAiGWiy0zEinBHmmjxkDLWsKNIb9eIkGU3BfWK8Za4NbJihoahdcceDdF6ZMpxmntxNhPWHXX1uwaJBmtAuGQl2m3r0hvUfv48MF-wL-t2d1mQK9x_SAZKjByUOC4mI4wGM-s2PsZi5pncp3ACJvr-Th6jERdTjobonLNy7O1BDREXk1RN0MUf0Gqv7JvlB_I6v-Z_-spDJamk52UKHmSnQX2XIhq1k3DWd3ptTE0aiO3-HMm0aOAGA6gLGpnBZMNJyJlrVNK-SJAximjOzUhcnLhZGG4QLOn7z_WE4x2crlvKLmXJ5bUXkY0een4ElvVD2uNpOGeZdL_rlXXPH719hFr4szn6Ttj5f_J72rNXk9l_KeibwSMRAxWFfmdTxNcSFi2Eo4lvo9xd84FSKGvY9MxHC08qHFnwAAAP__lyvcHg">