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/67764] -Wconversion generates false warnings for bitmask+cast expressions


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

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #6 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> ---
(In reply to Marcin Ålusarz from comment #5)
> Heh, I took a closer look and this bug indeed is a duplicate. -Wconversion
> is quite useless in its current form.
> 
> *** This bug has been marked as a duplicate of bug 40752 ***

Being the main author of Wconversion, I do agree with this sentiment. You'll
see there is a patch there to alleviate this issue, but I couldn't manage to
get it approved and now I don't have the time to invest on this issue. If you
want to see this fixed, your best option is to adopt the patch, update it, test
it and try to get it approved. Comparisons with how Clang and other compilers
behave would be useful but they should not be the basis of your argumentation.
When arguing for a change, try to be smart and see the point of view of the
other side and address that convincingly.

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