https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120990
--- Comment #6 from Rohan Suri ---
That makes sense, thanks Jonathan.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120990
--- Comment #4 from Rohan Suri ---
Thanks for looking into it Andrew. Good to know that those compiler flags do
catch it.
> I am not sure if a warning is even wanted here. This is just one bad symptoms
> of std::function.
I don't know if GCC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120990
Bug ID: 120990
Summary: Narrowing conversion in std::function return value is
not reported
Product: gcc
Version: 15.1.0
Status: UNCONFIRMED
Severity: normal