<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54158>54158</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Assertion `FromType->isIntegralOrUnscopedEnumerationType()' failed when converting between scoped enums
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
pcc
</td>
</tr>
</table>
<pre>
```
> cat test.ii
enum class a : int;
enum class b : int;
b x{a{}};
> ~/l/ra/bin/clang++ test.ii -std=c++17
clang: ../clang/lib/Sema/SemaOverload.cpp:424: clang::NarrowingKind clang::StandardConversionSequence::getNarrowingKind(clang::ASTContext &, const clang::Expr *, clang::APValue &, clang::QualType &, bool) const: Assertion `FromType->isIntegralOrUnscopedEnumerationType()' failed.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytU02P2yAQ_TX4gmLZ-Cs--JBsEqmq1G2Vbe8Yxg4VARdwkv33Hcebj2qvlYfB5s2beTC4tfK9IWXyYcmGJCuSbanggQbwIVZqXgQzHqnQ3HvKKclWVJlAsvUnsP0Ezr6lF1KtOQ5SbSa7w1iNVFvCdhqH4-haZdBjPtMTtka7SaELHyTJNmJeTqs5xRyJZeP4wdtp1aLfw5F_TK8ncNpyGYthwOic5RPnRkb7xp2zZ2X6r8rIZ2AfuJHcyRdrMIdX1uzhzwhGwIz3EP7hErZ8Yq_2b0gMcAmUsJKwFyqs8eG5wPYyOARXV_CJ-f0X1yPcaQ_kx8j12_twh1pr8fjqOfO0rZX34AIqpdjXnbPHKXqBh638F9TSO65f3U_jhR1AbrF_4PgUPoWhfMxFWEU7rjTI-KNTt2sSySaTdVbzKKigofmftej5AGbaxmlKaXraQjgDLs1sOl01H41ON4cQBj-dBtuh9SocxjYW9ji1Xp9u02Jw9jeIgJ_K-xE8vhR5WiyjQ7MUjMsuXZZVykvB6yKvZVKzhEPRQSZ5pHkL2jekWJNiE6mGJYwlGT5JkaVpXJR11UGXs7LLoSiWJE_wmikdT4Vj6_rINVcN7dh7BLXywT9A_F1UbwBu-fkYDtY1gxDRVWpz1fkXukghBQ">