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

2017-10-30 Thread helge at penne dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82745 --- Comment #11 from helge at penne dot no --- (In reply to Jonathan Wakely from comment #10) > This is still the same known problem already described in PR 80472 and PR > 58876. It is the same root cause, yes. PR 58876 is about a different

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

2017-10-30 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82745 --- Comment #10 from Jonathan Wakely --- This is still the same known problem already described in PR 80472 and PR 58876.

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

2017-10-30 Thread helge at penne dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82745 --- Comment #9 from helge at penne dot no --- I've tried compiling with -Wsystem-headers. This results in a significant number of warnings inside libstdc++ itself, due to conversions resulting in potential sign changes and/or loss of precision,