<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/89396>89396</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Clang issuing incorrect diagnostic under C23+pedantic
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Th3T3chn0G1t
</td>
</tr>
</table>
<pre>
`clang -std=c23 -pedantic` enables `-Wgnu-binary-literal` despite binary literals being standardised in C23. This seems incorrect.
**Expected Behaviour:**
Standardized binary literals are not marked as an extension by `-pedantic`
**Actual Behaviour:**
`-Wgnu-binary-literal` is set so `error: binary integer literals are a GNU extension` diagnostic is issued
**Version/Env:**
```
> clang -v
clang version 18.1.3
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8k8Fu2zwMx59Gvgg2bClK7YMPbdIUH9BvGLCsOw6yxNjaZCkQ5TTd0w-y07VbsAFCApkU-eOfpEQ0vQNoibgjYpvJKQ4-tPuB77kaXPlQxazz-qUl61JZ6XqaY9SEbxXjND-Cli4aRdYlBSc7C0jJusy_9G7KO-NkeMmtiRCkTS4a8Ggi0MVCLxakHRjXU4zSaRm0QdDUOLphvKD7wSBFgBGpccqHACoWpNyS8vbyy9K5Px9BRdD0DgZ5Mn4KhF9Mi9un1-A_QF_llwGo85GOMnwHTSVS6SicIzg03tHuZS7qXbHXALcqTtL-Nf0_RJnrixR9SgIh-PT2FdG4CD2E31Elffjw-Y1vVtbI3nmMRqV4BnECfQ35BGF-wHb37nRNeDnLld_TS79Py5fldlpC0KouqoIvlr0MPcREfa7XX9er_KjyZ-O0f8Z8xJO6eA0BpKaj12CT79GjOS-m_xxGaS3orZmL3yQ2sfkYfB_kSHfGAhKxeXx8-p-ITWfcH8iZbrlueCMzaKubigveVFxkQ3sQEmoGlah5UzV1t1J1ow8HJoHX9aqEzLSsZKtyVTWVKAVrCtZ1-nAjRKMEaw71gaxKGKWxhbWnsfChz2Zx27rhzTqzsgOL8-4wNgtEGEtrFNrkn3dTj2RVWoMR3yJEEy20m1nPFC0N_6_hft_KyWkIaQ8Iu3udvmwKth1iPOLcwB1hu97EYeoK5UfCdinL5S8_Bv8NVCRsN0MjYbuZ-2cAAAD__3TsPug">