[Bug c/119005] -Wstrict-overflow=3 false positive with static variable

2025-02-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119005 Andrew Pinski changed: What|Removed |Added Resolution|FIXED |INVALID --- Comment #4 from Andrew Pins

[Bug c/119005] -Wstrict-overflow=3 false positive with static variable

2025-02-24 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119005 --- Comment #3 from Alejandro Colomar --- Hmmm, thinking twice, I guess it is not a false positive. I can rewrite to something similar, which avoids the overflow, and avoids the diagnostic: alx@debian:~/tmp$ cat foo.c #include int f(void) {

[Bug c/119005] -Wstrict-overflow=3 false positive with static variable

2025-02-24 Thread alx at kernel dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119005 Alejandro Colomar changed: What|Removed |Added Resolution|INVALID |FIXED --- Comment #2 from Alejandro

[Bug c/119005] -Wstrict-overflow=3 false positive with static variable

2025-02-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119005 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---