<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/72957>72957</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Why does not clang issue a warning for type coercion?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kbuyukakyuz
</td>
</tr>
</table>
<pre>
Here clang issues a warning:
`int i = 1.4f; //Warning implicit type coercion`
But indirectly:
```
float f = 1.4;
int i = f; // No warning?
```
Why?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsks3q2zAQxJ9mfRF_ow_Ljg46JATTU685y9baVqNYQR8t7tOXOCkJpWDWSCwzw29kUnLziqhBnkCeK1PyEqK-DmUrV3Pdyu9qCHbT3zAiGb1ZZ-JSKpiIIb9MXN06gzgCPQM9QkvdmokjIM6E1c0E4kSA98D7y3OVuNvdu9Flkrc7kjFgHF1YoaUvhX2eSiZutS7imP32Kf_69uPkg8lk-msG4vS8f0f48Cffwztu_1-957wsG4i-slpYJZSpULOOUtm0kqlq0QdJ6aAaw8RhQoWNQSm6RjFjrLJy7CqnOeWCMc5oS5lUdcuVmBprFLMHK5BCQ_FmnK-9_3mrQ5yrnafuuJJd5c2APu1lcL7jBs4fvUT92P8aypygod6lnN4K2WWP-rJsxAZMZA35s6p3U2QK8R_yoq9K9HrJ-Z4epHdas8tLGeox3ID3D5fX7-seww8cM_D--QiA93vuPwEAAP__euevxw">