<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/123423>123423</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang] Accepts invalid alias template with the same name as its template parameter
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MagentaTreehouse
</td>
</tr>
</table>
<pre>
```c++
template <class T>
using T = int;
```
This is rejected by GCC, MSVC and EDG.
See https://compiler-explorer.com/z/6a5jWGn4s.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxUkU9vozAQxT-NuYyCjI0hOfhAScmpp0a75wGm4Mr8kcdkt_vpV6RRdyuNbB_ePPn9HjK7YSaywjwJc05wi-MS7AsONEe8BqJx2ZiSduk_rCjk53RCPe0jq0jT6jESCF13HpnhKvSzkNXGbh7gCkKfwc1R6F39ZbC_ZXUdHYNjCPROXaQe2g-41LVQNby8_qgB5x6ez5f0U_1KBGOMKwtdCdUI1XTLtDpP4UC_V78ECmm3TEI1f4RqCjTvPy9zzmnSW92f9AkTslmpy8yUmSqS0eaY45tpZdFKY0j3SEXZH_EkpdamlGXirJLKyCwrldbHvEi7Y_uW6QyLPlPHIxYilzSh86n3tyldwpA45o1spnSudOKxJc93tEp1HudBKLVTDnZfOLTbwCKX3nHkfxbRRX_vo75vmDNUXUdrZHDzDb3rAb1Dhi_0v1wcIY4EjBPBvB_I4OJ_khUDThQpJFvw9jvFwcVxax_o9l88rsMalr0XoZp7KhaqeQS7WfU3AAD__1PdsN8">