https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69818
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic, easyhack
CC| |manu at gcc dot gnu.org
Summary|feature request: generate a |warn for C++ functional
|warning for C++ functional |cast expression on pointer
|cast expression on pointer |or reference
|or reference |
--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Chris Studholme from comment #3)
> Does the same rational for -Wold-style-cast not apply here? Another option
> might be to extend -Wold-style-cast to cover these problematic uses of
> functional casts, instead of adding a new warning.
I would say that this is indeed preferable. Of course, it will depend on who
actually implements this.