<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54584>54584</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang timeout on certain floating-point constants
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Edin-Li
</td>
</tr>
</table>
<pre>
Affected versions: x86-64 clang 13.0.1 (Ubuntu 20.04.2), also reproduced with clang 10
(terminal) $ clang a.c
Looks like this is a magical constant (from test suite). Clang does not terminate even after hours, while gcc compiles quickly. A tiny change to the constant will yield a fast compilation (<1s):
Line 201:
-2277811246822238899767398834228515625e-4951L;
+2277811246822238899767398834228515626e-4951L;
see code at: https://godbolt.org/z/nnx56esqK
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUst2pCAQ_Rrc1GmPgKIuXHSSyWaynQ9AKZUJDR3BdHq-fkqTzrw2cw4iBdS9ty7VB3PtjuOIQ0IDr7hEG3xk8ghvjTqoEgan_QRc5kXOgYnmW7_6tIIo8qLMBRMtE_egXQyw4HkJZh0I52LTfMssWPHAiuPHLJqEy8l67SiV8G4EOh9-v_cUwnMEZ58R0mwj0NBw0pMdtIOBFCbt0yZnXMIJEsYEcbUJCTSH-x3RBIzgQ4IPwoSAr-hBj7QBc1iXuEm_zNYhTMNAsKczrSO8rHZ4dtccjpCsv8IwEx4JCaQFf7FfrHNwtegMaRs1SXhH0Iks3LQxec_j5pA8_lGb9Uj-8c_tgxB13XAuStUIIWTTtG2tatk2jSyFaCpeKVHhoWwr_sTk3c3Ku__JU__k7XPErRKDoNP22HNK5-3VmXikMQXTB5fysEwU_aDP-7dKYXz5-p6dmU6aVrY6SzY57N7fMNkThjUBVT_gkrT1MLpAdvjpcA7Wp0_vYrYurvuLlHpm7XPykALnXm-_A3XVd2pPCm2MK5Kjj1VZNWU2d3U7VhUvleDYV4VRkvdC93VZKIUG1Zg53aOLHavumBAeL7BD0JpVD5ntRCFEIUXNlZCc52Oti7HlKGXdo5KGlQWetHX5pmNzI1u6XVK_TpEOnY0p_jrUMdrJI-50hK_XNIel-2KsPzzZbKfuduk_AaZoDzE">