[Bug c++/90201] -Werror=useless-cast in move constructir

2019-04-24 Thread prokofjev.d at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90201 --- Comment #4 from Dima Pro --- (In reply to Jonathan Wakely from comment #3) > You get a warning with -Wuseless-cast Yes, sorry. Miss this. Anyway, no useless cast warning should be for this code.

[Bug c++/90201] -Werror=useless-cast in move constructir

2019-04-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90201 --- Comment #3 from Jonathan Wakely --- You get a warning with -Wuseless-cast

[Bug c++/90201] -Werror=useless-cast in move constructir

2019-04-24 Thread prokofjev.d at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90201 --- Comment #2 from Dima Pro --- without -Werror=useless-cast no warning for this code at all.(In reply to Jonathan Wakely from comment #1) > N.B. This is a warning, not an error. Reporting that you get an error > because you turned it into an

[Bug c++/90201] -Werror=useless-cast in move constructir

2019-04-22 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90201 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic