[Bug libstdc++/88849] std::binomial_distribution generates slightly larger values than expected

2024-02-01 Thread zhangboyang.id at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88849 Zhang Boyang changed: What|Removed |Added CC||zhangboyang.id at gmail dot com --- Comme

[Bug c/24542] potential integer overflow should be warned on assignment to wider variable

2023-03-31 Thread zhangboyang.id at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24542 --- Comment #12 from Zhang Boyang --- Hi, Sorry for filled a duplicate bug. But I'd like to suggest reconsider this feature request. Here are two reasons: 1) "u64 = 1 << u32", "u64 = u32 * u32" are common mistakes in beginners, 2) These expre

[Bug c/109352] New: Feature request: warn about "u64 = u32 * u32" and similar

2023-03-31 Thread zhangboyang.id at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109352 Bug ID: 109352 Summary: Feature request: warn about "u64 = u32 * u32" and similar Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal