<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/129260>129260</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Allow in C the more relaxed rules from C++ for assignments with const T*const *
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
alejandro-colomar
</td>
</tr>
</table>
<pre>
Cc: @AaronBallman , @pinskia
GCC bug: <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17654#c11>
There is interest in standardizing this in the committee, and it would be interesting to have Clang do this, to show prior art to the committee. I'm also proposing the same exact change to GCC.
The rules have been proven by C++ to just work, so time has proved that these rules work, unless someone points out any issues that I didn't know about with these rules from C++.
No existing code should break, since it's only removing existing diagnostics, and not adding any new ones.
And const correctness still holds after this relaxation of implicit conversions.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxsU8FypDgM_Rr3RRUKDKTTBw6E2Z6ay57mvmVsNSgxVpdlupP5-i1Dkq3ZmhOUrff8nvRkRGgKiJ1qn1X77WDWNHPsjMcXE1zkB8ueFxMPI7v3brCq7kE1ZW8ih2fj_WICKD3ksysFeSWjyl6V_fdhgHGdtvJ6mFO6iqp7pc9KnydriymsBcdJ6fO4Tr_Ie6P0WWa-_zOuU2EnUvWZnKq_VcfHtlG6tlWl6r928p8zRgQSoJAwoiSgAJJMcCY6-kVhgjRv15BmBMvLQikhZqEmOKAEd169gxG_KDYQw2xuCIM3YQLHG0sGJYasDa6ROIKJKZ_8Rl0A_FD6uIDxwnCNfGXZdSCIWRDwzdgEdjZhwoz-PgzFlxuIq0fZHx8RQya4YYDxHQaln5V-zpCXVbLw-JolCUOiBWE2slc7SLNJ-UH55PusXYNHERBekAPClSkkAV4TmPAOJLKi7Ogf4MgFpY8JXgPfwYy56k5p_o34Enn5VPbh4m8GfKO9j5Yd5oZtLY5odsEULAIlpY8CHPw7RFz4luu_gI7MFFgSWfmcVeAExrl8m8UGvAMHlI9X--DAcpAElmNEm8JmNJH3MLN3AuaSMO5xiOjNm0nEAfgCtFw9WcrIcMMoxEGKg-tqd6pP5oBddWzKY_tYnZrD3DXNsbJlWWm0bWNO-ml8qi74WLbGlVVlxwN1utRtqfVT1WqtdTE6556a1uq2PJUnPaqmxMWQL7y_LTn7h63xXaVP-rE8eDOil20Ntc4ut1uldd7K2GXQw7hOoprSkyT5jyZR8tj13vM9J37YMrdwxN0wuj8MDS45x9vuL5jDsI147-RPpfv9T-n-sEbf_W99Kc3rWFhelD5nFR-fh2vkF7RJ6fMeKaXPH-Zunf43AAD__w6Cev0">