<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/128691>128691</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang assert: "Assertion `getDepthAndIndex(NewParam).first == 0 && "Unexpected template parameter depth"' failed."
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hokein
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/TPjf1YYY3
A regression from https://github.com/llvm/llvm-project/pull/111143
```
template <typename = void>
class NewDeleteAllocator;
template <>
struct NewDeleteAllocator<> {
template <typename>
NewDeleteAllocator();
};
template <typename>
struct NewDeleteAllocator : NewDeleteAllocator<> {
using NewDeleteAllocator<>::NewDeleteAllocator;
};
void test() { NewDeleteAllocator abc; }
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyEk01v2zwQhH_N6kK8BrXU50EH5XUN9BLk0B5ypKiVzJQWBXKVj_76gnaKpIGDAAYsAZxnR8NZHaOdF6IOyhso95ne-OhDd_S_yC7Z4MeX7si8RlA94AHwMPtx8I53PsyAh9-Ahx93D1N-f3-vQPYg-14EmgPFaP0ipuBP4gPA8nEbdsafAA_OPf79-28N_oEMAx7WzTnAQ57nefFKhUq-_mTPdFqdZhKg_ueXlRZ9Ss978ejtCOobyN44HaO4pac9OWLqnfNGsw-gbi6894yLJHLYDF_VpBMC6iQV4tr0C0FcE2MD2L6OrfdX5_9L-dSHANV_bW-Ldpk_PZZuQfWf5vLOYMpSMEW-fEHiX_OkBwPqRiTlu0vKxk6NrWp1Rl1eF7JopCrq7NhhbUxtFKpqaNu6GIaxVpMpm3IqTYXKZLZDiaVELHNZlEW9G1pdSdlUzUC6MdRCIemkrdulzqQWZjbGjbocm6rNM6cHcvHcZkTj9DKD6qfgF6ZlBMTU8dCd-zZsc4RCOhs5vtHYsqPurBQ6RgqcYgfE_vySSg2VnIn3tPKxX8bvy0jPgM0tPd3poE-A7W6yIXKqZGqlFIAVYJUgPxd6XskwjW89WpOKmIIYEzKZxFpM2joad4CYbcF9XMKvd-icSkxbdAnmscM_AQAA__9IODnS">