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/61162] possibly bad error location with -Wc++-compat


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61162

--- Comment #12 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Jun 25 12:43:05 2014
New Revision: 211978

URL: https://gcc.gnu.org/viewcvs?rev=211978&root=gcc&view=rev
Log:
    PR c/61162
    * c-parser.c (c_parser_statement_after_labels): Pass the location of
    the return expression to c_finish_return.

    * gcc.dg/pr61162.c: Adjust dg-warning.
    * gcc.dg/pr61162-2.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr61162-2.c
Modified:
    trunk/gcc/c/ChangeLog
    trunk/gcc/c/c-parser.c
    trunk/gcc/c/c-typeck.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/pr61162.c


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