<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/119223>119223</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Class template constraint failure not explained if encountered through deduction guide
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pkasting
</td>
</tr>
</table>
<pre>
If a class template instantiation fails due to constraint satisfaction, clang normally prints a note saying what constraint(s) were unsatisfied.
However, if the instantiation occurs as part of attempting to match a deduction guide, this note is omitted, making it hard to tell what failed.
Sample case: https://godbolt.org/z/75dM3PEoK
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcksFunDAQhp_GXEZZgQ1sOHDYpl21qipV6hPM4gHcGBt5xtmmT195E7VpTkiAP3_zz4_MbglEo-o-qO5jhVnWmMb9EVlcWKpLtM_jlxkQJo_MILTtHoXABRYM4lBcDDCj8ww2E0iEKQaWhC4IMIrjGafyk9IPBRIWCDFt6P0z7MkFYUAIUQgYn11Y4LqivGEofc9KD3ClRJDDC9GRPaj6pOrT53ilJ0oF7maQ9b1ZnKacGJBhxyQQZ0ApQ5TpiuyGMq2AYMnmmyYs2VkqPFkdv5g5hrg5EbLl_YaP5bATWDHZAhHy_sW7BPHX7QduuyeYkEmZE6wiOytzUvqs9HmJ9hK9HGJalD7_Vvp87Ow38_1T_FrZ0djBDFjR2ByNOXaDbtpqHY_zfWObyV5M15u27-u56WejzTDMuramr9yoa902uh6aru279tDaWg_Hqem7vu7RGtXWtKHzB--ftnJ35ZgzjU0zaG0qjxfyfCuD1oGucPuqtC7dSGM5dHfJC6u29o6F_2HEiafx4f-SvGlCCSYnKnkC_do9ukC2rIzCFHMQSmRB1hTzsr5fRpWTH9-l52TNl8MUN6XPReL1cben-JMmUfp8U2elz6-zPY36TwAAAP__5jP-WA">