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/60257] Incorrect column number and confusing message in -Woverride-init


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Thu May  1 07:35:05 2014
New Revision: 209974

URL: http://gcc.gnu.org/viewcvs?rev=209974&root=gcc&view=rev
Log:
    PR c/60257
    * c-typeck.c (warning_init): Add location_t parameter.  Call
    warning_at instead of warning.
    (push_init_level): Pass input_location to warning_init.
    (add_pending_init): Add location_t parameter.  Pass loc to
    warning_init.
    (set_nonincremental_init): Pass input_location to add_pending_init.
    (set_nonincremental_init_from_string): Likewise.
    (output_init_element): Pass loc to warning_init and to
    add_pending_init.

    * gcc.dg/pr60257.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr60257.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog


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