[Bug c++/120990] Narrowing conversion in std::function return value is not reported

2025-07-08 Thread rohan.a.suri at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120990 --- Comment #6 from Rohan Suri --- That makes sense, thanks Jonathan.

[Bug c++/120990] Narrowing conversion in std::function return value is not reported

2025-07-07 Thread rohan.a.suri at gmail dot com via Gcc-bugs
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

[Bug c++/120990] New: Narrowing conversion in std::function return value is not reported

2025-07-07 Thread rohan.a.suri at gmail dot com via Gcc-bugs
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