http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60455

            Bug ID: 60455
           Summary: Imprecise column number of -Woverflow in array
                    initializers
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chengniansun at gmail dot com

$: cat s.c 
char a[] = {0xFFFF, 4, 0xFFFF};
$: gcc-trunk -c s.c 
s.c:1:1: warning: overflow in implicit constant conversion [-Woverflow]
 char a[] = {0xFFFF, 4, 0xFFFF};
 ^
s.c:1:1: warning: overflow in implicit constant conversion [-Woverflow]
$: gcc-trunk --version
gcc (GCC) 4.9.0 20140306 (experimental)
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Reply via email to