This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/60455] New: Imprecise column number of -Woverflow in array initializers
- From: "chengniansun at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Mar 2014 10:51:02 +0000
- Subject: [Bug c/60455] New: Imprecise column number of -Woverflow in array initializers
- Auto-submitted: auto-generated
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.