[Bug libstdc++/109229] New: std::exclusive_scan narrows to initial value

2023-03-21 Thread gnu-bugzilla at ribizel dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109229 Bug ID: 109229 Summary: std::exclusive_scan narrows to initial value Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lib

[Bug libstdc++/109229] std::exclusive_scan narrows to initial value

2023-03-21 Thread gnu-bugzilla at ribizel dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109229 --- Comment #2 from Tobias Ribizel --- I agree, but that doesn't make it less bug-prone IMO, with the narrowing conversion happening deep inside the exclusive_scan implementation (-Wnarrowing doesn't pick it up). Something similar like common_ty