<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62324>62324</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] bugprone-shared-ptr-array-mismatch emits invalid fix pre c++17
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
njames93
</td>
</tr>
</table>
<pre>
Before c++17, `std::shared_ptr` didn't have support for unbounded array types.
The check in question will change try to convert the type of a `shared_ptr` into an unbounded array resulting in compilation errors on certain standard libraries in c++14 or earlier mode
https://godbolt.org/z/EKdov1MM5
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxkks-SmzwQxJ9GXKbskgcw9oHD-tuPS2pvuaeENIA2QiKjwRvn6VOwW5V_Jx1UM93z6zY5-zEStaq-qfq5MKtMidv4ambK17Lok3u0NxoSE1iFN4W3U6PwP1BnncWp8kmVT3kyTO7LIqzOGpx3UWEjMJk7QV6XJbHAkBjW2Kc1OnJgmM0D5LFQPir9rPTT54nATmS_go_wbaUsPkV48yGAnUwcCYQfIAlsindiAZloXwBpALPb-cOFj5LAxH80mfIaxMdx07FpXnwwuxQxJ86QIlhiMT5CFhOdYQfB92zYU95nPihUkBjIcPDEMCdH73dMIkvesGCnsBuT61OQY-JRYfdDYff_J5fup5eXunBt6a7l1RTUns4XLPGEui6m9mqtoctAruyRTFPqujSkT3UzVDXqvil8ixpLXWGlGzxX9dFiaYbLVV8veBpc41SlaTY-HEO4z5t24XNeqT1jiVURTE8h74EjRnqD_VMhbvlzu80c-nXMqtLBZ8m_toiXsDfFBhPHg3j3UPUz9Ou4cIp0eE_gsAgfdtiH2efZiJ2AZi8bvbsJ3sHgv8Pye6GKlUP7Fzkv09ofbZoVdpuDj-ewcHolKwq73XdW2O13_QwAAP__jvLrzA">