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++/85043] -Wuseless-cast false positive for temporary objects


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85043

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|paolo.carlini at oracle dot com    |

--- Comment #9 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Martin, my point in the previous comment was simple: it's been a while since I
implemented the warning and today it finally occurred to me that I really
intended to implement a very simple warning for cast to its own type, as
consistently documented. Unfortunately the name is misleading. Personally, I
don't have any short/mid term plans to implement something much more complex
and sophisticated which goes beyond that. I'm pretty confident that will not
cause major problems to anybody because the warning isn't part of any set
enabled by default (if I'm misremembering that should definitely be changed).
Also, I would personally not object if somebody wants to deprecate the name of
the current warning, rename it to something really straightforward matching the
docs and then proceed to implement under "useless" something doing "the right
thing".

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