[Bug other/66827] [6 Regression] left shifts of negative value warnings due to C++14 switch

nickc at redhat dot com gcc-bugzilla@gcc.gnu.org
Fri Dec 18 11:46:00 GMT 2015


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

Nick Clifton <nickc at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nickc at redhat dot com

--- Comment #8 from Nick Clifton <nickc at redhat dot com> ---
Created attachment 37079
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37079&action=edit
Convert to unsigned before shifting

(In reply to Jakub Jelinek from comment #7)
> The question is about the others, but it has been so long that the 
> locations are all useless.

I have just checked.  The only problems that still remain are in
libiberty/regex.c.

The uploaded patch fixes this problem.  I plan to submit it for review after
running a few more regression tests.


More information about the Gcc-bugs mailing list