This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69818] warn for C++ functional cast expression on pointer or reference
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 15 Feb 2016 02:15:18 +0000
- Subject: [Bug c++/69818] warn for C++ functional cast expression on pointer or reference
- Auto-submitted: auto-generated
- References: <bug-69818-4 at http dot gcc dot gnu dot org/bugzilla/>
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.