<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/149669>149669</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Unexpected `-std=c2y` octal warnings on zero with type suffix
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dzaima
</td>
</tr>
</table>
<pre>
The C code `long long foo = 0ll;`, compiled with `-std=c2y`, gives:
```c
<source>:1:17: warning: octal literals without a '0o' prefix are deprecated [-Wdeprecated-octal-literals]
1 | long long foo = 0ll;
| ^
```
but should not. (same with `0u`, `0l`, `0ul`, `0ull`)
https://godbolt.org/z/YKoWs9brM
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx0UsuOpDgQ_JrkkqqSSfMoHzhUdzWX1d521dqjwQl45cLINv36-hFUzXRPS4MSyBRBJBGEjtGOM3MD5QOUl0yvafKhMR_aXnXWefPe_DMxPmLvDSNUwvl5xP0yeI8gLyicA_kAlQDaYNfFOjb4atO04Q8xGZCXnt7viNG-cAR5BrFXJW7Vb4N8jH4NPYN8AnnOt7MGecZXHWY7j1vr-6QdOps4aBf3NX5NqBGoFh6oxiXwYN9QB0bDS-BeJzYI5cPh-XM-7DyHnzxQXkCcERFzhPoR_6jyBsId9P2A8umropvAbk0YJ786g7NPRwQ6RX3lX_6I9e7L1rsv_fr7cJvUjXRKadk9pBaoHb3pvEtHH0ag9gOo_e8v_xxVF_7OTCONkkpn3OR1SapQNRXZ1HS1oD4nxT2fZJcPtRDVUFaaudLKsMpsQ4JKUecqP9GpKI4kFNVG9rkYZF4PBRSCr9q6o3Mv1213ZmNcuckLVVUqc7pjF_dYEc38ivtTINpSFprtpUO3jhEK4WxM8ZMm2eS4-Xfmt4X7_dd9S9E9A_dQRPQzfnDwN0vT-8IY12Gwb9kaXPPNKpumtTv2_grUbhvvt8MS_P_cJ6B2_84I1N6FvDT0IwAA___FEfAr">