[Bug c/60114] Incorrect column number for -pedantic and -Wconversion
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 25 10:50:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60114
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Apr 25 10:49:56 2014
New Revision: 209794
URL: http://gcc.gnu.org/viewcvs?rev=209794&root=gcc&view=rev
Log:
PR c/60114
c/
* c-parser.c (c_parser_initelt): Pass input_location to
process_init_element.
(c_parser_initval): Pass loc to process_init_element.
* c-tree.h (process_init_element): Adjust declaration.
* c-typeck.c (push_init_level): Pass input_location to
process_init_element.
(pop_init_level): Likewise.
(set_designator): Likewise.
(output_init_element): Add location_t parameter. Pass loc to
digest_init.
(output_pending_init_elements): Pass input_location to
output_init_element.
(process_init_element): Add location_t parameter. Pass loc to
output_init_element.
testsuite/
* gcc.dg/pr60114.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr60114.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/c/c-tree.h
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list