[Bug c++/82745] Fails to warn on narrowing conversion by std::forward (e.g. when calling make_unique)

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 27 17:01:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82745

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Narrowing conversions only cause a diagnostic in braced-init-list, not in other
contexts. This is how C++ has worked since day one.


More information about the Gcc-bugs mailing list