<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57659>57659</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang: using enum tdef rejected
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
urnathan
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
urnathan
</td>
</tr>
</table>
<pre>
DR2621 notes implementation divergence for:
```
enum class E {
a, b, c
};
using MyE = E;
int main() {
using enum MyE; // #1
}
```
clang++ -std=c++20 -c x.cc
x.cc:8:14: error: type alias 'MyE' cannot be referenced with a enum specifier
using enum MyE; // #1
^
x.cc:5:7: note: declared here
using MyE = E;
^
(gcc, EDG, MSVC accept). It should be accepted.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU8FunDAQ_RpzGS0yZsH4wGETtlUPubRS78bMgivWINsk3b_vABsljapIRbbH49GbefNs2qm71c13UYoMwE0RA9jrPOIVXdTRTg46-4y-R2cQLpNn-YnxhvETK_l9bC665Qpm1CHAGZh82E8BNBOP0K6LueNkw_J7eF-XYF0PTzfC5Q2cP0Sti3DV1jFRMaHep95xW2ECEwwAmPhCg0yevZX7F1-i6nomHmjAIcSOSpvdFRwOBn6n5k542-WnimZ2pAXQ-00HiLcZQY9WByooVw5CgtGOZIQWweMF_apbBy82DqB3rmFGYy8W_X_1Ae8_Vpz_4lbQlCuj9QJX2yH156nwQAw-V_lDRpK5p5x0X-fm62qefvx8BG0MzpH0TwG-RQjDtIzd2uMewC5NsM7KUsiCH5VMujrvVK50Em0csd7FJl7vWo0dXkiiX2gInix-rIcY57C-r633niRb2tRMV3LG8fnVHGY_rSBybQgLBtoUsixUMtSKCy3KvDOFkpUQx8JUiFkmcilEp6RIRt3iGGpW0EULhy-wpaA9K5rE1oILwRVXmeJVJtNWqKwyOs-yqtC8VOzIkZ7imK480sn3ia83Su3SBwqONsTwFqR_wfYO8V5u8U7HQbt7Nb3EYfL162myMam3Tv4Aon4F5A">