<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/118190>118190</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang] Variable template partial specialization cannot specialize primary template with `auto` NTTP
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MagentaTreehouse
</td>
</tr>
</table>
<pre>
Reproducer:
```c++
template <auto> constexpr bool b = false;
template <int I> constexpr bool b<I> = true;
```
Error:
```
<source>:2:33: error: variable template partial specialization does not specialize any template argument; to define the primary template, remove the template argument list
2 | template <int I> constexpr bool b<I> = true;
| ^~~~
```
Possibly related: #42421.
See Compiler Explorer: https://godbolt.org/z/nEdbcKqWs
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycU01vnDAQ_TXDZZSVP2B3OXAgZJGqqlXURu3ZwACuDKa22SY55LdX3my71aaHqpIlLPPe-M3zG-W9HmaiArJbyO4StYbRuuKDGmgO6sERjXb1lDS2eyo-0eJst7bkQJbAStiy19WCuI2LlYGmxahACLJSa7AgD9ja2Qd6XBw21hpsEOQd9sp4AnnN0XPAd38jgaxO55Eb3Bqp-KeEuGflwTl7LS7uZeXt6loCeQBZCpCllCBLpDMej8pp1RjC32IW5YJWBv1CrVZGP6ug7YydJY-zDZdzQjU_XXjKDetEc4gCg8WOej0ThpFwcXpS7gIFUaGjyR5ff7-pgEb7AKxERBQIuwr_16lzETwVgezw8vLy1rt7671uzBM6ind00RYQMhWp4JtXyGcirOy0aEMOD4-Lse6UBRxDWHz0XdQg6sF2jTVhY90Aon4GUc-Hrmnff__qk66QXS5zlVDBd1IywbN8n4zFdpemPZdK9Nu0kzLv87ZjbCe6fLdnfc8TXQgmUi4YZyKTfL9pc8ZZvpd7wbMd4zmkjCalzcaY4xTvTrT3KxWc73nOEqMaMv5Xzl0RUTfNOnhIWTTaX3hBB3OaiMqoeYDsDr_8azxaNV-F4_rV8YcOI8KWncZjy_Djw8N9sjpTXJmow7g2m9ZOIOoo7fy5WZz9Rm0AUZ_68yDqc4vHQvwMAAD___C5NB4">