This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/69818] warn for C++ functional cast expression on pointer or reference


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]