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

daniel.kruegler at googlemail dot com gcc-bugzilla@gcc.gnu.org
Fri Oct 27 17:15:00 GMT 2017


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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #3 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
(In reply to Jonathan Wakely from comment #2)
> Narrowing conversions only cause a diagnostic in braced-init-list, not in
> other contexts. This is how C++ has worked since day one.

I would even go so far and say: Since day zero ;-)


More information about the Gcc-bugs mailing list