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/60279] New: Incorrect column number for -Wuninitialized in return statement


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

            Bug ID: 60279
           Summary: Incorrect column number for -Wuninitialized in return
                    statement
           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

I found the column number in the return statement of -Wuninitialized is not
correct. 


$: cat s.c 
int g(char *);
int f(void) {
  char *s;
  return          g(s);
}
$: gcc-trunk -Wuninitialized -c s.c
s.c: In function âfâ:
s.c:4:3: warning: âsâ is used uninitialized in this function [-Wuninitialized]
   return          g(s);
   ^
$: gcc-trunk --version
gcc-trunk (GCC) 4.9.0 20140217 (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.

$:

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