[Bug c++/119141] ub sanitizer incorrect overflow detection

2025-03-06 Thread kelbonage at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119141 --- Comment #2 from Nikl Kelbon --- (In reply to Andrew Pinski from comment #1) > ``` > #include > #include > > [[gnu::noinline,gnu::noipa]] > void sink(auto) > {} > > int main() { > std::chrono::milliseconds ms = std::chrono::millisecon

[Bug c++/119141] ub sanitizer incorrect overflow detection

2025-03-06 Thread sjames at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119141 --- Comment #3 from Sam James --- (In reply to Nikl Kelbon from comment #2) > This is not a bug about the difference in behavior of different compilers. > Of course they will behave the same, they have the same standard libraries > and sanitizer

[Bug c++/119141] ub sanitizer incorrect overflow detection

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