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
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