<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/147495>147495</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang] Incorrect "Redeclaration of using-enum declaration"
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kezyr
</td>
</tr>
</table>
<pre>
This code compiles normaly on gcc, msvc but clangd says `Redeclaration of using-enum declaration`.
```c++
struct A {
enum class B {BB};
using enum B;
struct C {
using enum B;
};
};
```
https://godbolt.org/z/9d48vcrnv
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMkdGunCAQhp9mvCFng4PIesGF7sakt01fAAFdWpQNoMmep29095zTNL1oMokyM_8_DJ9KyU2LtRJ4B_xaqDXfQpS_7PsjFkMwD_nj5hLRwViiw3x33iayhDgr_yBhIZPWgBcyp02TYc1Ee7VMhiT1SARq-t0aq72KKruwkDCSNbllerPLOpM_KlDTE9AWavoMDdjtQduU46ozaQmI_UjIIdVepUS6Pdl1IK7AnsXD_dnSfeReDpdPh3-2fZp8_XxcBmh7y_megLWAPWA_BTMEn08hToD9O2DfmOq86bhsQNvCSGYa1qjCylLwsqlFJc7FTSpu8DwKNtjKaFqLkg_jqMSoa2ZVTU3hJFLkVNAzbZjg55NgpbG1YXzkQ8NUCRW1s3L-5P027-MLl9JqZVmJquGFV4P16SCJeIAAxB1qlLvgbVinBBX1LuX0ZZFd9gf-y6HgV_Jt0SFGqzMBxP8liFis0cu_Xsrl2zqcdJgB-33i6_N2j-Gn1RmwPzZIgP1riU3i7wAAAP__2sTLuA">