$: cat s.c void g(int); void f(void) { int i = 1; g( i>>-1); } $: gcc-trunk -c s.c s.c: In function ‘f’: s.c:4:2: warning: right shift count is negative g( i>>-1); ^ $:
Mine.
Author: mpolacek Date: Wed Apr 30 06:08:17 2014 New Revision: 209925 URL: http://gcc.gnu.org/viewcvs?rev=209925&root=gcc&view=rev Log: PR c/60351 * c-typeck.c (build_binary_op): Use location when warning about shift count. * gcc.dg/pr60351.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr60351.c Modified: trunk/gcc/c/ChangeLog trunk/gcc/c/c-typeck.c trunk/gcc/testsuite/ChangeLog
Fixed.