<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/84859>84859</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Parameter pack incorrectly accepted not at the end of template parameter list
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Boris-Rasin
</td>
</tr>
</table>
<pre>
clang 18.1.0
This correctly fails to compile:
"error: template parameter pack must be the last template parameter"
```c++
template<typename..., typename...>
class C;
```
This is incorrectly accepted:
```c++
template <template<typename..., typename...> class C>
struct test;
```
Related: https://github.com/llvm/llvm-project/issues/84857
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykksGOmzAQhp_GXKxF9pgEOPiwSZpzteoLGDMBtwYje2iVt69MdpttG1UrVRqBwON_vpn5TUpumBE12x3Y7lSYlcYQ9SFEl55eTHJz0YX-qq0388BlU8pSMHFi4vn2_DK6xG2IES35K78Y5xOnwG2YFueRqdc8BoAxhsjUMyecFm8I-WKimZAw8sXYb3xaE_EOOY3IvUn0IJEBvK_O9uIWlsEhx_b37RpTR7ouOJsJy7JkcOTvP9WnW7b1JiV-ZOrwh-ZfbeaY770aa3Eh7O89foCJZ6gP8vFfaK-oieJq81gS_Rv3BbN-JuMj0ZIyIpwZnAdH49qVNkwMzt5_f3s9LTF8RUsMzi6lFRODc1M1u7rotepb1ZoCtaylAAF7aIpRV7ITF6kAL6KpW9tXppV1d1EoqraVrSqcBgGVUBKEkLVoyh6qBqXsa9wruZcdqwROxvkyA5QhDsVWWue6beFNhz5ttgSY8QffDvP-d6ci6g26W4fEKuFdonRXIUce9effvfVocXwOxA1tfsO55-HyyJpZvVij1_83yfZnAAAA__-aew1-">