[Bug c/60139] Imprecise column number for -pedantic on non-computable initializer element
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 30 06:15:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60139
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Apr 30 06:14:39 2014
New Revision: 209926
URL: http://gcc.gnu.org/viewcvs?rev=209926&root=gcc&view=rev
Log:
PR c/60139
* c-typeck.c (output_init_element): Pass OPT_Wpedantic to pedwarn
and pedwarn_init. Use loc insted of input_location.
* gcc.dg/pr60139.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/pr60139.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-typeck.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list