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: "egall at gwmail dot gwu.edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 22 Aug 2016 14:12:47 +0000
- Subject: [Bug c++/69818] warn for C++ functional cast expression on pointer or reference
- Authentication-results: sourceware.org; auth=none
- Auto-submitted: auto-generated
- References: <bug-69818-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69818
Eric Gallager <egall at gwmail dot gwu.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egall at gwmail dot gwu.edu
--- Comment #5 from Eric Gallager <egall at gwmail dot gwu.edu> ---
Personally I'd prefer a separate option, -Wfunctional-cast or something, as
functional casts and "old-style" casts are different things. I generally avoid
-Wold-style-cast currently, as it is often pretty noisy in code that started
off written as C and was then converted to C++, but I'd consider using a
separate -Wfunctional-cast, as that would catch just things added
post-C++-conversion, which means it would probably be significantly less noisy,
and easier to fix.