[Bug c++/69818] warn for C++ functional cast expression on pointer or reference
egall at gwmail dot gwu.edu
gcc-bugzilla@gcc.gnu.org
Mon Aug 22 14:12:00 GMT 2016
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.
More information about the Gcc-bugs
mailing list