<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/104738>104738</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang integer complex divide algorithm is wrong
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
efriedma-quic
</td>
</tr>
</table>
<pre>
Consider the following (taken from #104666):
```
constexpr auto GH55390 = 1 / 65536j;
```
Current clang prints a divide by zero message... but that's nonsense: the denominator isn't zero. We should be able to evaluate this without overflow.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsUc1u5CwQfBp8acXCgO3xgUN-NN_3BnvGpm2TxfQsNJNkn341k0R7WQkV6kOV6seVEraEaEX_JPqXxlXeKVtcc0B_uIdfNSzNTP7DPlMqwWMG3hFWipHeQtpAqBO7n5hgzXSAULqTZhgGoSahH4V8EfIbB_n17udCqTC-XzK4ygT__d_3epIg9At0INQZhr7Xw6vQT_-kf-JzzRkTwxJd2uCSQ-ICDny4Bo8wf8BvzAQHluI2bNsW5srAu2OhxgKJUsFUUOjHeyiPiY6QHFOGUJJQI98FWoAfCGWnGj3MCG6OCEyAVxerYwTeQ4G3wDtVBrpiXiO9tY232k96cg3ablRGGj2eTLPbzq-9kcavk1s7PyIu06DmdR6XTg1m6ppglVRGnrpJ9lJL02p9Mv08LItzUp3GThiJhwuxjfF6tJS3JpRS0XbSjPrURDdjLPdJlbp3I_TjmikxJi-Uug2d7Y37MNetCCNjKFz-qnHgiPaz1ZAYN8yw0HGJ-P5drosb5cD7AbfsmdLW1Bztznwpt-XVWajzFnivc7vQIdT5pv71PVwyveLCQp3vxotQ5y_vV6v-BAAA__875NDh">