Issue |
149669
|
Summary |
Unexpected `-std=c2y` octal warnings on zero with type suffix
|
Labels |
new issue
|
Assignees |
|
Reporter |
dzaima
|
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
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs